1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:27:45 +00:00

Kernel: Fix logic typo in AnonymousVMObject::handle_cow_fault()

Introduced in dd58d0f650
This commit is contained in:
Andreas Kling 2021-08-05 19:26:04 +02:00
parent b7b23d05d5
commit 27100126c0

View file

@ -318,7 +318,7 @@ PageFaultResponse AnonymousVMObject::handle_cow_fault(size_t page_index, Virtual
if (m_shared_committed_cow_pages) {
m_shared_committed_cow_pages->uncommit_one();
if (!m_shared_committed_cow_pages->is_empty())
if (m_shared_committed_cow_pages->is_empty())
m_shared_committed_cow_pages = nullptr;
}
return PageFaultResponse::Continue;