diff options
Diffstat (limited to 'src/kernel/syscalls.c')
-rw-r--r-- | src/kernel/syscalls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/syscalls.c b/src/kernel/syscalls.c index 5f380b6..d6b23d0 100644 --- a/src/kernel/syscalls.c +++ b/src/kernel/syscalls.c @@ -323,8 +323,8 @@ void __user *_syscall_memflag(void __user *addr, size_t len, int flags) { phys = pagedir_virt2phys(pages, iter, false, false); if (!phys) { - phys = page_alloc(1); - memset(phys, 0, PAGE_SIZE); // TODO somehow test this + // TODO test zeroing of user pages + phys = page_zalloc(1); pagedir_map(pages, iter, phys, true, true); } } |