mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-25 11:37:56 +00:00
Check for NODEV return from udev2dev()
This commit is contained in:
parent
fffaaed41a
commit
ded67d0f77
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=126094
@ -1808,6 +1808,8 @@ addaliasu(nvp, nvp_rdev)
|
||||
if (nvp->v_type != VCHR)
|
||||
panic("addaliasu on non-special vnode");
|
||||
dev = udev2dev(nvp_rdev);
|
||||
if (dev == NODEV)
|
||||
return (nvp);
|
||||
/*
|
||||
* Check to see if we have a bdevvp vnode with no associated
|
||||
* filesystem. If so, we want to associate the filesystem of
|
||||
|
Loading…
Reference in New Issue
Block a user