Module Name:    src
Committed By:   aymeric
Date:           Sun Apr 20 22:39:51 UTC 2014

Modified Files:
        src/sys/net: if_tap.c

Log Message:
Call mutex_destroy() on sc_kqlock in tap_detach(). Found by LOCKDEBUG.


To generate a diff of this commit:
cvs rdiff -u -r1.74 -r1.75 src/sys/net/if_tap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/net/if_tap.c
diff -u src/sys/net/if_tap.c:1.74 src/sys/net/if_tap.c:1.75
--- src/sys/net/if_tap.c:1.74	Thu Mar 20 06:48:54 2014
+++ src/sys/net/if_tap.c	Sun Apr 20 22:39:51 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_tap.c,v 1.74 2014/03/20 06:48:54 skrll Exp $	*/
+/*	$NetBSD: if_tap.c,v 1.75 2014/04/20 22:39:51 aymeric Exp $	*/
 
 /*
  *  Copyright (c) 2003, 2004, 2008, 2009 The NetBSD Foundation.
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_tap.c,v 1.74 2014/03/20 06:48:54 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_tap.c,v 1.75 2014/04/20 22:39:51 aymeric Exp $");
 
 #if defined(_KERNEL_OPT)
 
@@ -415,6 +415,7 @@ tap_detach(device_t self, int flags)
 	ifmedia_delete_instance(&sc->sc_im, IFM_INST_ANY);
 	seldestroy(&sc->sc_rsel);
 	mutex_destroy(&sc->sc_rdlock);
+	mutex_destroy(&sc->sc_kqlock);
 
 	pmf_device_deregister(self);
 

Reply via email to