Return ENXIO if there is no device.
This commit is contained in:
parent
9569213cd2
commit
0a3cb76ffd
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user