Kernel: Cloned shared regions should also be marked as shared

This commit is contained in:
Andreas Kling 2020-02-08 02:39:46 +01:00
parent 8731682d0e
commit f91b3aab47
Notes: sideshowbarker 2024-07-19 09:32:08 +09:00

View File

@ -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;
}