1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:17:44 +00:00

Kernel: Fix munmap() bad splitting of already-split Regions

When splitting an Region that's already the result of an earlier split,
we have to take the Region's offset-in-VMObject into account since it
may be non-zero.
This commit is contained in:
Andreas Kling 2019-10-01 11:38:59 +02:00
parent 4bfd4dc6c7
commit c58d1868cb
2 changed files with 7 additions and 2 deletions

View file

@ -79,6 +79,11 @@ public:
return size() / PAGE_SIZE;
}
size_t offset_in_vmobject() const
{
return m_offset_in_vmo;
}
int commit();
size_t amount_resident() const;