diff options
author | Marvin Borner | 2021-01-16 14:19:43 +0100 |
---|---|---|
committer | Marvin Borner | 2021-01-16 14:19:43 +0100 |
commit | 1ca3f322c81544ba769a0cd44fbd4bf03a8f875d (patch) | |
tree | ad192e8967f82ec225bf08f13ca67987b9bcb6c8 /kernel/features | |
parent | 41cba1de51b328979ff2d0261b4141bb4e128fe6 (diff) |
Fixed vfs dev finder
Diffstat (limited to 'kernel/features')
-rw-r--r-- | kernel/features/fs.c | 2 |
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; } |