diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-08 02:39:46 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-08 02:39:46 +0100 |
commit | f91b3aab47ed7abe61db4cc59a307d59778f1fa9 (patch) | |
tree | bf3c018ba7377f1e954ec50a538f25e7427cb359 /Kernel | |
parent | 8731682d0eca68b3dce60e713d5808829c3b5adb (diff) | |
download | serenity-f91b3aab47ed7abe61db4cc59a307d59778f1fa9.zip |
Kernel: Cloned shared regions should also be marked as shared
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/VM/Region.cpp | 1 |
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; } |