mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
We may not have an actual cdev at this point.
This commit is contained in:
parent
64716bfbf4
commit
0454a53d65
1 changed files with 3 additions and 0 deletions
|
|
@ -1052,6 +1052,9 @@ devfs_reclaim(ap)
|
|||
dev = vp->v_rdev;
|
||||
vp->v_rdev = NULL;
|
||||
|
||||
if (dev == NULL)
|
||||
return (0);
|
||||
|
||||
dev_lock();
|
||||
if (de != NULL)
|
||||
LIST_REMOVE(de, de_alias);
|
||||
|
|
|
|||
Loading…
Reference in a new issue