Destroy the mutex last. In this case it should not matter, but
generally cleanup code might still acquire it thus try to be consistent destroying locks late. Obtained from: projects/vnet MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
b9dbac48f3
commit
a6c96fc2f0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=301504
@ -287,11 +287,11 @@ static void
|
||||
ipid_sysuninit(void)
|
||||
{
|
||||
|
||||
mtx_destroy(&V_ip_id_mtx);
|
||||
if (V_id_array != NULL) {
|
||||
free(V_id_array, M_IPID);
|
||||
free(V_id_bits, M_IPID);
|
||||
}
|
||||
counter_u64_free(V_ip_id);
|
||||
mtx_destroy(&V_ip_id_mtx);
|
||||
}
|
||||
VNET_SYSUNINIT(ip_id, SI_SUB_PROTO_DOMAIN, SI_ORDER_ANY, ipid_sysuninit, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user