svn commit: r199551 - head/sys/dev/et

Pyun YongHyeon yongari at FreeBSD.org
Thu Nov 19 21:39:43 UTC 2009


Author: yongari
Date: Thu Nov 19 21:39:43 2009
New Revision: 199551
URL: http://svn.freebsd.org/changeset/base/199551

Log:
  Destroy driver mutex in device detach.

Modified:
  head/sys/dev/et/if_et.c

Modified: head/sys/dev/et/if_et.c
==============================================================================
--- head/sys/dev/et/if_et.c	Thu Nov 19 21:08:33 2009	(r199550)
+++ head/sys/dev/et/if_et.c	Thu Nov 19 21:39:43 2009	(r199551)
@@ -373,7 +373,8 @@ et_detach(device_t dev)
 		if_free(sc->ifp);
 
 	et_dma_free(dev);
-	/* XXX Destroy lock here */
+
+	mtx_destroy(&sc->sc_mtx);
 
 	return 0;
 }


More information about the svn-src-all mailing list