Return ENXIO if there is no device.

This commit is contained in:
phk 2000-01-02 15:16:17 +00:00
parent 9569213cd2
commit 0a3cb76ffd
2 changed files with 10 additions and 2 deletions

View File

@ -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);
}
/*

View File

@ -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);
}
/*