mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 17:22:46 -04:00
Allow a deleted deveice to delte it's nodes in other mounted devfs
filesystems even if not in SPLIT_DEVS mode.
This commit is contained in:
parent
6980f0ebac
commit
d5ad8952dc
1 changed files with 7 additions and 1 deletions
|
|
@ -2,7 +2,7 @@
|
|||
/*
|
||||
* Written by Julian Elischer (julian@DIALix.oz.au)
|
||||
*
|
||||
* $Header: /home/ncvs/src/sys/miscfs/devfs/devfs_tree.c,v 1.40 1997/09/07 16:20:50 bde Exp $
|
||||
* $Header: /home/ncvs/src/sys/miscfs/devfs/devfs_tree.c,v 1.41 1997/09/16 09:10:18 julian Exp $
|
||||
*/
|
||||
|
||||
#include "opt_devfs.h"
|
||||
|
|
@ -609,7 +609,13 @@ devfs_remove_dev(void *devnmp)
|
|||
|
||||
/*
|
||||
* then free the main node
|
||||
* If we are not running in SPLIT_DEVS mode, then
|
||||
* THIS is what gets rid of the propogated nodes.
|
||||
*/
|
||||
while(dnp->linklist)
|
||||
{
|
||||
dev_free_name(dnp->linklist);
|
||||
}
|
||||
dev_free_name((devnm_p)devnmp);
|
||||
return ;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue