diff options
author | phk <phk@FreeBSD.org> | 2000-01-02 15:16:17 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2000-01-02 15:16:17 +0000 |
commit | 0a3cb76ffd82430900d9436e8efe8491bf805273 (patch) | |
tree | 13b100e1a8884dd8e9620999d193e872415ab481 /sys/isofs | |
parent | 9569213cd2f3ff143d5a6d52a0d55b004b17886c (diff) | |
download | FreeBSD-src-0a3cb76ffd82430900d9436e8efe8491bf805273.zip FreeBSD-src-0a3cb76ffd82430900d9436e8efe8491bf805273.tar.gz |
Return ENXIO if there is no device.
Diffstat (limited to 'sys/isofs')
-rw-r--r-- | sys/isofs/cd9660/cd9660_vfsops.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/isofs/cd9660/cd9660_vfsops.c b/sys/isofs/cd9660/cd9660_vfsops.c index 01690a4..16d51e7 100644 --- a/sys/isofs/cd9660/cd9660_vfsops.c +++ b/sys/isofs/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); } /* |