Module Name: src
Committed By: christos
Date: Wed Mar 27 23:49:03 UTC 2013
Modified Files:
src/sys/external/bsd/ipf/netinet: ip_log.c
Log Message:
call mutex destroy in fini, so that we don't end up with a lockdebug panic
when we re-attach.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/external/bsd/ipf/netinet/ip_log.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/external/bsd/ipf/netinet/ip_log.c
diff -u src/sys/external/bsd/ipf/netinet/ip_log.c:1.4 src/sys/external/bsd/ipf/netinet/ip_log.c:1.5
--- src/sys/external/bsd/ipf/netinet/ip_log.c:1.4 Sat Sep 15 12:56:45 2012
+++ src/sys/external/bsd/ipf/netinet/ip_log.c Wed Mar 27 19:49:02 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: ip_log.c,v 1.4 2012/09/15 16:56:45 plunky Exp $ */
+/* $NetBSD: ip_log.c,v 1.5 2013/03/27 23:49:02 christos Exp $ */
/*
* Copyright (C) 2012 by Darren Reed.
@@ -9,7 +9,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_log.c,v 1.4 2012/09/15 16:56:45 plunky Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_log.c,v 1.5 2013/03/27 23:49:02 christos Exp $");
#include <sys/param.h>
#if defined(KERNEL) || defined(_KERNEL)
@@ -327,6 +327,7 @@ ipf_log_soft_fini(ipf_main_softc_t *soft
MUTEX_ENTER(&softl->ipl_mutex[i]);
}
MUTEX_EXIT(&softl->ipl_mutex[i]);
+ MUTEX_DESTROY(&softl->ipl_mutex[i]);
}
return 0;