From 1ca3f322c81544ba769a0cd44fbd4bf03a8f875d Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 16 Jan 2021 14:19:43 +0100 Subject: Fixed vfs dev finder --- kernel/features/fs.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'kernel/features/fs.c') diff --git a/kernel/features/fs.c b/kernel/features/fs.c index 45e744c..48e736a 100644 --- a/kernel/features/fs.c +++ b/kernel/features/fs.c @@ -70,6 +70,8 @@ struct device *vfs_find_dev(const char *path) { assert(path[0] == '/'); struct mount_info *m = vfs_find_mount_info(path); + if (m->dev->vfs->type == VFS_DEVFS) // TODO: ? + return device_get_by_name(path + strlen(m->path) + 1); return m && m->dev ? m->dev : NULL; } -- cgit v1.2.3