svn commit: r240975 - stable/9/sys/dev/netmap

Ed Maste emaste at FreeBSD.org
Wed Sep 26 21:55:14 UTC 2012


Author: emaste
Date: Wed Sep 26 21:55:13 2012
New Revision: 240975
URL: http://svn.freebsd.org/changeset/base/240975

Log:
  Add missing mtx_destroy
  
  This is a direct commit to stable/9 as the locking is somewhat different
  in HEAD due to the VALE bridge work (r238812).

Modified:
  stable/9/sys/dev/netmap/netmap.c

Modified: stable/9/sys/dev/netmap/netmap.c
==============================================================================
--- stable/9/sys/dev/netmap/netmap.c	Wed Sep 26 20:47:39 2012	(r240974)
+++ stable/9/sys/dev/netmap/netmap.c	Wed Sep 26 21:55:13 2012	(r240975)
@@ -1040,6 +1040,7 @@ netmap_detach(struct ifnet *ifp)
 		knlist_destroy(&na->rx_rings[i].si.si_note);
 		mtx_destroy(&na->rx_rings[i].q_lock);
 	}
+	mtx_destroy(&na->core_lock);
 	knlist_destroy(&na->tx_si.si_note);
 	knlist_destroy(&na->rx_si.si_note);
 	bzero(na, sizeof(*na));


More information about the svn-src-all mailing list