summaryrefslogtreecommitdiff
path: root/src/kernel
diff options
context:
space:
mode:
authordzwdz2021-09-12 11:28:16 +0200
committerdzwdz2021-09-12 11:28:16 +0200
commitf6238db266300e8efdf20b98734f1c21abafd6a0 (patch)
tree0d2d418f082ef47794f5f1ea88f025d93745e259 /src/kernel
parente1789ffa14826e0c7378f974ac68c2c04ba8640c (diff)
remove obsolete comment
Diffstat (limited to 'src/kernel')
-rw-r--r--src/kernel/syscalls.c4
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;