Do not attempt to open NODEV
This commit is contained in:
parent
a0ff4ed2fe
commit
4666e8d5fb
@ -148,6 +148,9 @@ spec_open(ap)
|
||||
if (vp->v_mount && (vp->v_mount->mnt_flag & MNT_NODEV))
|
||||
return (ENXIO);
|
||||
|
||||
if (dev == NODEV)
|
||||
return (ENXIO);
|
||||
|
||||
dsw = devsw(dev);
|
||||
if (dsw == NULL || dsw->d_open == NULL)
|
||||
return (ENXIO);
|
||||
|
Loading…
x
Reference in New Issue
Block a user