aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/vfs_mount.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/vfs_mount.c')
-rw-r--r--sys/kern/vfs_mount.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c
index 53df6a2..3b1fcc5 100644
--- a/sys/kern/vfs_mount.c
+++ b/sys/kern/vfs_mount.c
@@ -72,7 +72,7 @@ vfs_create_mp(const char *path, int mntflags, struct mount **mp_out)
int
vfs_mount(const char *path, int mntflags)
{
- size_t hash = vfs_hash_path(path);
+ size_t hash;
int status;
struct mountlist_entry *entry;
struct mount *mp;
@@ -80,7 +80,7 @@ vfs_mount(const char *path, int mntflags)
if ((status = vfs_create_mp(path, mntflags, &mp)) != 0) {
return status;
}
- if (hash == 0) {
+ if (hash == -1) {
/* Something is wrong with the path */
return -EINVAL;
}