From 42e4b941b70499f5cf10f41126af1634821d72d5 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Fri, 15 Apr 2022 23:42:43 +0200 Subject: kernel/vfs: don't hang on orphaned vfs calls --- src/kernel/vfs/mount.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/kernel/vfs/mount.c') 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 = "", -- cgit v1.2.3