Remove cdevsw when unloading the vn module.

Submitted by:	dunno... :-(
This commit is contained in:
Nick Hibma 2001-01-07 19:03:14 +00:00
parent 958210ab0d
commit f778f0c79c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=70758

View File

@ -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;