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));
_______________________________________________
svn-src-stable-9@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-stable-9
To unsubscribe, send any mail to "svn-src-stable-9-unsubscr...@freebsd.org"

Reply via email to