drop rnh lock before destroying it
This commit is contained in:
parent
dff1491c74
commit
08a2459ee1
@ -244,6 +244,7 @@ vfs_free_addrlist(struct netexport *nep)
|
||||
if ((rnh = nep->ne_rtable[i])) {
|
||||
RADIX_NODE_HEAD_LOCK(rnh);
|
||||
(*rnh->rnh_walktree) (rnh, vfs_free_netcred, rnh);
|
||||
RADIX_NODE_HEAD_UNLOCK(rnh);
|
||||
RADIX_NODE_HEAD_DESTROY(rnh);
|
||||
free(rnh, M_RTABLE);
|
||||
nep->ne_rtable[i] = NULL; /* not SMP safe XXX */
|
||||
|
Loading…
x
Reference in New Issue
Block a user