diff options
Diffstat (limited to 'src/kernel/syscalls.c')
-rw-r--r-- | src/kernel/syscalls.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/kernel/syscalls.c b/src/kernel/syscalls.c index 743d5c5..9c6a1e0 100644 --- a/src/kernel/syscalls.c +++ b/src/kernel/syscalls.c @@ -79,9 +79,7 @@ handle_t _syscall_open(const char __user *path, int len) { return -1; // copy the path to the kernel - // note: the cast is necessary because the function usually accepts user_ptrs - // it can handle copies to physical memory too, though - // note 2: path_buf gets freed in vfs_backend_finish + // path_buf gets freed in vfs_backend_finish path_buf = kmalloc(len); if (!virt_cpy_from(process_current->pages, path_buf, path, len)) goto fail; |