mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 17:52:43 +00:00
Do not attempt to open NODEV
This commit is contained in:
parent
f99a4b252c
commit
ad3917e8e6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=126191
@ -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…
Reference in New Issue
Block a user