diff options
Diffstat (limited to 'sys/kern/vfs_conf.c')
-rw-r--r-- | sys/kern/vfs_conf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_conf.c b/sys/kern/vfs_conf.c index afa6fa5..f3d39f0 100644 --- a/sys/kern/vfs_conf.c +++ b/sys/kern/vfs_conf.c @@ -200,7 +200,7 @@ vfs_mountroot_try(char *mountfrom) printf("setrootbyname failed\n"); /* If the root device is a type "memory disk", mount RW */ - if (devsw(rootdev) && (devsw(rootdev)->d_flags & D_MEMDISK)) + if (rootdev != NODEV && devsw(rootdev) && (devsw(rootdev)->d_flags & D_MEMDISK)) mp->mnt_flag &= ~MNT_RDONLY; error = VFS_MOUNT(mp, NULL, NULL, NULL, curproc); |