Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net Call mutex_destroy() on sc_kqlock in tap_detach(). F...



details:   https://anonhg.NetBSD.org/src/rev/428479949e3e
branches:  trunk
changeset: 328846:428479949e3e
user:      aymeric <aymeric%NetBSD.org@localhost>
date:      Sun Apr 20 22:39:51 2014 +0000

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

diffstat:

 sys/net/if_tap.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 4d0d6deb4b62 -r 428479949e3e sys/net/if_tap.c
--- a/sys/net/if_tap.c  Sun Apr 20 22:31:34 2014 +0000
+++ b/sys/net/if_tap.c  Sun Apr 20 22:39:51 2014 +0000
@@ -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 @@
        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);
 



Home | Main Index | Thread Index | Old Index