mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 17:04:19 +01:00
drop rnh lock before destroying it
This commit is contained in:
parent
dff1491c74
commit
08a2459ee1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=186541
@ -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…
Reference in New Issue
Block a user