summaryrefslogtreecommitdiff
path: root/src/kernel/syscalls.c
diff options
context:
space:
mode:
authordzwdz2022-05-05 22:47:12 +0200
committerdzwdz2022-05-05 22:47:12 +0200
commita40063321e8fbf4d82f46471221062bfa393604a (patch)
treedf4bb43830c0f94f90738d841b5caeb72922cda6 /src/kernel/syscalls.c
parent9900cc737988f25db30b5876f066a78e73389205 (diff)
kernel: each driver registers its own mounts
Diffstat (limited to 'src/kernel/syscalls.c')
-rw-r--r--src/kernel/syscalls.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/kernel/syscalls.c b/src/kernel/syscalls.c
index aa2d45f..01d42a0 100644
--- a/src/kernel/syscalls.c
+++ b/src/kernel/syscalls.c
@@ -186,7 +186,8 @@ handle_t _syscall_fs_fork2(void) {
if (front < 0) SYSCALL_RETURN(-1);
process_current->handles[front] = handle_init(HANDLE_FS_FRONT);
- backend = kmalloc(sizeof *backend); // TODO never freed
+ backend = kmalloc(sizeof *backend);
+ backend->heap = true;
backend->is_user = true;
backend->potential_handlers = 1;
backend->refcount = 2; // child + handle