diff options
Diffstat (limited to 'Kernel/Syscalls/mmap.cpp')
-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 1b3e99b755..e7dd72ad59 100644 --- a/Kernel/Syscalls/mmap.cpp +++ b/Kernel/Syscalls/mmap.cpp @@ -128,7 +128,7 @@ ErrorOr<FlatPtr> Process::sys$mmap(Userspace<const Syscall::SC_mmap_params*> use FlatPtr addr = params.addr; auto size = params.size; - auto alignment = params.alignment; + auto alignment = params.alignment ? params.alignment : PAGE_SIZE; auto prot = params.prot; auto flags = params.flags; auto fd = params.fd; |