Skip to content

Commit

Permalink
mmap: allow for not page aligned len
Browse files Browse the repository at this point in the history
JIRA: RTOS-923
  • Loading branch information
badochov committed Sep 23, 2024
1 parent a19bbc8 commit aab2598
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions syscalls.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ int syscalls_sys_mmap(void *ustack)
GETFROMSTACK(ustack, int, fildes, 4);
GETFROMSTACK(ustack, off_t, offs, 5);

size = round_page(size);

if (vm_mapBelongs(proc, vaddr, sizeof(*vaddr)) < 0) {
return -EFAULT;
}
Expand Down

0 comments on commit aab2598

Please sign in to comment.