Remove cdevsw when unloading the vn module.
Submitted by: dunno... :-(
This commit is contained in:
parent
958210ab0d
commit
f778f0c79c
@ -783,6 +783,7 @@ vn_modevent(module_t mod, int type, void *data)
|
||||
vnclear(vn);
|
||||
free(vn, M_DEVBUF);
|
||||
}
|
||||
cdevsw_remove(&vn_cdevsw);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user