diff --git a/Kernel/Syscalls/mmap.cpp b/Kernel/Syscalls/mmap.cpp index 92c80c4fb7..94d9ada8b2 100644 --- a/Kernel/Syscalls/mmap.cpp +++ b/Kernel/Syscalls/mmap.cpp @@ -198,7 +198,7 @@ ErrorOr Process::sys$mmap(Userspace use Memory::VirtualRange requested_range { VirtualAddress { addr }, rounded_size }; if (addr && !(map_fixed || map_fixed_noreplace)) { // If there's an address but MAP_FIXED wasn't specified, the address is just a hint. - requested_range = { {}, 0 }; + requested_range = { {}, rounded_size }; } if (map_anonymous) {