From a6c96fc2f0768bb4b65163187682a52f402fddbb Mon Sep 17 00:00:00 2001 From: "Bjoern A. Zeeb" Date: Mon, 6 Jun 2016 13:04:22 +0000 Subject: [PATCH] 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 --- sys/netinet/ip_id.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet/ip_id.c b/sys/netinet/ip_id.c index b0efbee0b262..de4ae75d6f7e 100644 --- a/sys/netinet/ip_id.c +++ b/sys/netinet/ip_id.c @@ -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);