aboutsummaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/vfs_syscalls.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c
index 371c1a5..937ae87 100644
--- a/sys/kern/vfs_syscalls.c
+++ b/sys/kern/vfs_syscalls.c
@@ -90,6 +90,7 @@ fd_alloc(struct filedesc **fd_out)
return -ENOMEM;
}
+ fd->refcnt = 1;
fd->fdno = i;
td->fds[i] = fd;