mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:47:44 +00:00
Kernel: Allow flushing of partial regions in sys$msync
This commit is contained in:
parent
49d6ad6633
commit
259f78545a
1 changed files with 1 additions and 1 deletions
|
@ -607,7 +607,7 @@ ErrorOr<FlatPtr> Process::sys$msync(Userspace<void*> address, size_t size, int f
|
|||
size = Memory::page_round_up(size);
|
||||
|
||||
// FIXME: We probably want to sync all mappings in the address+size range.
|
||||
auto* region = address_space().find_region_from_range(Memory::VirtualRange { address.vaddr(), size });
|
||||
auto* region = address_space().find_region_containing(Memory::VirtualRange { address.vaddr(), size });
|
||||
// All regions from address upto address+size shall be mapped
|
||||
if (!region)
|
||||
return ENOMEM;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue