call mutex destroy in fini, so that we don't end up with a lockdebug panic
when we re-attach.
This commit is contained in:
parent
10f770acff
commit
0eaecbdb0a
|
@ -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 *softc, void *arg)
|
|||
MUTEX_ENTER(&softl->ipl_mutex[i]);
|
||||
}
|
||||
MUTEX_EXIT(&softl->ipl_mutex[i]);
|
||||
MUTEX_DESTROY(&softl->ipl_mutex[i]);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue