svn commit: r298149 - projects/vnet/sys/netinet

Bjoern A. Zeeb bz at FreeBSD.org
Sun Apr 17 16:24:55 UTC 2016


Author: bz
Date: Sun Apr 17 16:24:54 2016
New Revision: 298149
URL: https://svnweb.freebsd.org/changeset/base/298149

Log:
  Destroy the mutex last (just because it feels more natural).
  Run the sysuninit at the time of the L3 protocols.
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  projects/vnet/sys/netinet/ip_id.c

Modified: projects/vnet/sys/netinet/ip_id.c
==============================================================================
--- projects/vnet/sys/netinet/ip_id.c	Sun Apr 17 15:51:26 2016	(r298148)
+++ projects/vnet/sys/netinet/ip_id.c	Sun Apr 17 16:24:54 2016	(r298149)
@@ -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);
+VNET_SYSUNINIT(ip_id, SI_SUB_PROTO_DOMAIN, SI_ORDER_THIRD, ipid_sysuninit, NULL);


More information about the svn-src-projects mailing list