From 27100126c0cba7a7a1196f837dcacefdb059f664 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 5 Aug 2021 19:26:04 +0200 Subject: Kernel: Fix logic typo in AnonymousVMObject::handle_cow_fault() Introduced in dd58d0f6508606993d67df1e256ebd563212be71 --- Kernel/VM/AnonymousVMObject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Kernel') diff --git a/Kernel/VM/AnonymousVMObject.cpp b/Kernel/VM/AnonymousVMObject.cpp index 84f8e17b26..8602567693 100644 --- a/Kernel/VM/AnonymousVMObject.cpp +++ b/Kernel/VM/AnonymousVMObject.cpp @@ -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; -- cgit v1.2.3