drop rnh lock before destroying it

This commit is contained in:
Kip Macy 2008-12-28 14:32:27 +00:00
parent dff1491c74
commit 08a2459ee1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=186541

View File

@ -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 */