mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Prevent module unloading if there are active connections.
PR: kern/89085 Submitted by: Rostislav Krasny MFC after: 1 week
This commit is contained in:
parent
ba3612cd5c
commit
19caf6c088
1 changed files with 2 additions and 1 deletions
|
|
@ -346,7 +346,8 @@ nsmb_dev_load(module_t mod, int cmd, void *arg)
|
|||
case MOD_UNLOAD:
|
||||
smb_iod_done();
|
||||
error = smb_sm_done();
|
||||
error = 0;
|
||||
if (error)
|
||||
break;
|
||||
EVENTHANDLER_DEREGISTER(dev_clone, nsmb_dev_tag);
|
||||
printf("netsmb_dev: unloaded\n");
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue