summaryrefslogtreecommitdiffstats
path: root/sys/gnu/fs/ext2fs/ext2_vfsops.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/gnu/fs/ext2fs/ext2_vfsops.c')
-rw-r--r--sys/gnu/fs/ext2fs/ext2_vfsops.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/gnu/fs/ext2fs/ext2_vfsops.c b/sys/gnu/fs/ext2fs/ext2_vfsops.c
index ed772f6..1bf97d5 100644
--- a/sys/gnu/fs/ext2fs/ext2_vfsops.c
+++ b/sys/gnu/fs/ext2fs/ext2_vfsops.c
@@ -270,14 +270,10 @@ ext2_mount(mp, path, data, ndp, p)
return (error);
devvp = ndp->ni_vp;
- if (devvp->v_type != VBLK) {
+ if (!vn_isdisk(devvp)) {
vrele(devvp);
return (ENOTBLK);
}
- if (devsw(devvp->v_rdev) == NULL) {
- vrele(devvp);
- return (ENXIO);
- }
/*
* If mount by non-root, then verify that user has necessary
OpenPOWER on IntegriCloud