summaryrefslogtreecommitdiffstats
path: root/sys/fs/cd9660
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2000-01-02 15:16:17 +0000
committerphk <phk@FreeBSD.org>2000-01-02 15:16:17 +0000
commit0a3cb76ffd82430900d9436e8efe8491bf805273 (patch)
tree13b100e1a8884dd8e9620999d193e872415ab481 /sys/fs/cd9660
parent9569213cd2f3ff143d5a6d52a0d55b004b17886c (diff)
downloadFreeBSD-src-0a3cb76ffd82430900d9436e8efe8491bf805273.zip
FreeBSD-src-0a3cb76ffd82430900d9436e8efe8491bf805273.tar.gz
Return ENXIO if there is no device.
Diffstat (limited to 'sys/fs/cd9660')
-rw-r--r--sys/fs/cd9660/cd9660_vfsops.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/fs/cd9660/cd9660_vfsops.c b/sys/fs/cd9660/cd9660_vfsops.c
index 01690a4..16d51e7 100644
--- a/sys/fs/cd9660/cd9660_vfsops.c
+++ b/sys/fs/cd9660/cd9660_vfsops.c
@@ -216,9 +216,13 @@ cd9660_mount(mp, path, data, ndp, p)
NDFREE(ndp, NDF_ONLY_PNBUF);
devvp = ndp->ni_vp;
+ if (devsw(devvp->v_rdev) == NULL) {
+ vrele(devvp);
+ return (ENXIO);
+ }
if (!vn_isdisk(devvp)) {
vrele(devvp);
- return ENOTBLK;
+ return (ENOTBLK);
}
/*
OpenPOWER on IntegriCloud