aboutsummaryrefslogtreecommitdiff
path: root/kernel/features/fs.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/features/fs.c')
-rw-r--r--kernel/features/fs.c2
1 files changed, 2 insertions, 0 deletions
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;
}