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
Notes: sideshowbarker 2024-07-18 07:26:15 +09:00

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;