diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/fs/tmpfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/tmpfs.c b/sys/fs/tmpfs.c index 6ae1c38..c3f2fae 100644 --- a/sys/fs/tmpfs.c +++ b/sys/fs/tmpfs.c @@ -121,7 +121,7 @@ tmpfs_do_lookup(const char *rpath, struct tmpfs_node **res) } spinlock_release(&cnp->lock); - if (res == NULL) { + if (dirent == NULL) { return -ENOENT; } |