mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 05:58:57 +00:00
Remember to check the DE_WHITEOUT flag in the case where a cloned
device is hidden by a devfs(8) rule. Spotted by: Adam Nowacki <ptnowak@bsk.vectranet.pl>
This commit is contained in:
parent
a89ec7140f
commit
8b285b9088
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=121281
@ -385,10 +385,15 @@ devfs_lookupx(ap)
|
||||
devfs_populate(dmp);
|
||||
|
||||
dde = devfs_itode(dmp, cdev->si_inode);
|
||||
if (dde != NULL && *dde != DE_DELETED && *dde != NULL) {
|
||||
de = *dde;
|
||||
goto found;
|
||||
}
|
||||
|
||||
if (dde == NULL || *dde == NULL || *dde == DE_DELETED)
|
||||
goto notfound;
|
||||
|
||||
if ((*dde)->de_flags & DE_WHITEOUT)
|
||||
goto notfound;
|
||||
|
||||
de = *dde;
|
||||
goto found;
|
||||
|
||||
notfound:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user