Giant wasn't dropped here if we have to return EBUSY. This is bad.
This commit is contained in:
parent
4d489f472b
commit
d1fd2228b8
@ -557,8 +557,10 @@ nfsrv_modevent(module_t mod, int type, void *data)
|
||||
break;
|
||||
|
||||
case MOD_UNLOAD:
|
||||
if (nfsrv_numnfsd != 0)
|
||||
if (nfsrv_numnfsd != 0) {
|
||||
NET_UNLOCK_GIANT();
|
||||
return EBUSY;
|
||||
}
|
||||
|
||||
callout_stop(&nfsrv_callout);
|
||||
sysent[SYS_nfssvc].sy_narg = nfs_prev_nfssvc_sy_narg;
|
||||
|
Loading…
x
Reference in New Issue
Block a user