summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-08-05 19:26:04 +0200
committerAndreas Kling <kling@serenityos.org>2021-08-06 00:37:47 +0200
commit27100126c0cba7a7a1196f837dcacefdb059f664 (patch)
treef8cb0382d2531cd5df5179812c6e3c9d6a8ccc8e /Kernel
parentb7b23d05d53cbd2d1fa9897d3089173aec70f4e2 (diff)
downloadserenity-27100126c0cba7a7a1196f837dcacefdb059f664.zip
Kernel: Fix logic typo in AnonymousVMObject::handle_cow_fault()
Introduced in dd58d0f6508606993d67df1e256ebd563212be71
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/VM/AnonymousVMObject.cpp2
1 files changed, 1 insertions, 1 deletions
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;