summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-02-08 02:39:46 +0100
committerAndreas Kling <kling@serenityos.org>2020-02-08 02:39:46 +0100
commitf91b3aab47ed7abe61db4cc59a307d59778f1fa9 (patch)
treebf3c018ba7377f1e954ec50a538f25e7427cb359 /Kernel
parent8731682d0eca68b3dce60e713d5808829c3b5adb (diff)
downloadserenity-f91b3aab47ed7abe61db4cc59a307d59778f1fa9.zip
Kernel: Cloned shared regions should also be marked as shared
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/VM/Region.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/VM/Region.cpp b/Kernel/VM/Region.cpp
index cd1de3c593..c97c809579 100644
--- a/Kernel/VM/Region.cpp
+++ b/Kernel/VM/Region.cpp
@@ -96,6 +96,7 @@ NonnullOwnPtr<Region> Region::clone()
// Create a new region backed by the same VMObject.
auto region = Region::create_user_accessible(m_range, m_vmobject, m_offset_in_vmobject, m_name, m_access);
region->set_mmap(m_mmap);
+ region->set_shared(m_shared);
return region;
}