Source-Changes-HG archive

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

[src/trunk]: src/sys/net We need a cv_destroy() here too. Fixes LOCKDEBUG pa...



details:   https://anonhg.NetBSD.org/src/rev/7161edbb2ab7
branches:  trunk
changeset: 771657:7161edbb2ab7
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Sun Nov 27 14:55:57 2011 +0000

description:
We need a cv_destroy() here too.  Fixes LOCKDEBUG panic on interface detachment.

diffstat:

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

diffs (26 lines):

diff -r e11595bc5bcd -r 7161edbb2ab7 sys/net/if.c
--- a/sys/net/if.c      Sun Nov 27 14:36:20 2011 +0000
+++ b/sys/net/if.c      Sun Nov 27 14:55:57 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if.c,v 1.257 2011/11/16 06:09:37 dyoung Exp $  */
+/*     $NetBSD: if.c,v 1.258 2011/11/27 14:55:57 jakllsch Exp $        */
 
 /*-
  * Copyright (c) 1999, 2000, 2001, 2008 The NetBSD Foundation, Inc.
@@ -90,7 +90,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.257 2011/11/16 06:09:37 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.258 2011/11/27 14:55:57 jakllsch Exp $");
 
 #include "opt_inet.h"
 
@@ -1954,6 +1954,7 @@
        ifp->if_ioctl_lock = NULL;
        percpu_free(il->il_nenter, sizeof(uint64_t));
        il->il_nenter = NULL;
+       cv_destroy(&il->il_emptied);
        mutex_destroy(&il->il_lock);
        kmem_free(il, sizeof(*il));
 }



Home | Main Index | Thread Index | Old Index