diff options
author | Hendiadyoin1 <leon2002.la@gmail.com> | 2021-11-18 15:53:45 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-12-01 09:47:46 +0100 |
commit | 259f78545a8dedbc17d2b377c6e8a3a33c02021b (patch) | |
tree | b5e1465cf037278101ab6d3099accc4a47783e10 /Kernel/Syscalls | |
parent | 49d6ad663385ed61db63ec795cfaecdf6fab610a (diff) | |
download | serenity-259f78545a8dedbc17d2b377c6e8a3a33c02021b.zip |
Kernel: Allow flushing of partial regions in sys$msync
Diffstat (limited to 'Kernel/Syscalls')
-rw-r--r-- | Kernel/Syscalls/mmap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Syscalls/mmap.cpp b/Kernel/Syscalls/mmap.cpp index 97d31592c7..2a2ed149db 100644 --- a/Kernel/Syscalls/mmap.cpp +++ b/Kernel/Syscalls/mmap.cpp @@ -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; |