summaryrefslogtreecommitdiff
path: root/src/kernel/vfs/mount.c
diff options
context:
space:
mode:
authordzwdz2022-04-15 23:42:43 +0200
committerdzwdz2022-04-15 23:42:43 +0200
commit42e4b941b70499f5cf10f41126af1634821d72d5 (patch)
tree6b56775263837b7883b7a05a7603bc59274ce05d /src/kernel/vfs/mount.c
parent26849aa2b3f49cbad8be4688800667e2d89aa5db (diff)
kernel/vfs: don't hang on orphaned vfs calls
Diffstat (limited to 'src/kernel/vfs/mount.c')
-rw-r--r--src/kernel/vfs/mount.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/kernel/vfs/mount.c b/src/kernel/vfs/mount.c
index c962ba5..423bf10 100644
--- a/src/kernel/vfs/mount.c
+++ b/src/kernel/vfs/mount.c
@@ -6,6 +6,7 @@ struct vfs_mount *vfs_mount_seed(void) {
struct vfs_mount *mount = kmalloc(sizeof *mount);
struct vfs_backend *backend = kmalloc(sizeof *backend);
backend->type = VFS_BACK_ROOT;
+ backend->potential_handlers = 1;
*mount = (struct vfs_mount){
.prev = NULL,
.prefix = "",