Module Name: src
Committed By: knakahara
Date: Mon Apr 3 10:17:17 UTC 2017
Modified Files:
src/sys/net: if_l2tp.c
Log Message:
fix missing mutex_destroy when modunload.
pointed out by s-yamaguchi@IIJ, thanks.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/net/if_l2tp.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_l2tp.c
diff -u src/sys/net/if_l2tp.c:1.3 src/sys/net/if_l2tp.c:1.4
--- src/sys/net/if_l2tp.c:1.3 Mon Apr 3 10:08:24 2017
+++ src/sys/net/if_l2tp.c Mon Apr 3 10:17:17 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: if_l2tp.c,v 1.3 2017/04/03 10:08:24 knakahara Exp $ */
+/* $NetBSD: if_l2tp.c,v 1.4 2017/04/03 10:17:17 knakahara Exp $ */
/*
* Copyright (c) 2017 Internet Initiative Japan Inc.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_l2tp.c,v 1.3 2017/04/03 10:08:24 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_l2tp.c,v 1.4 2017/04/03 10:17:17 knakahara Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -218,6 +218,8 @@ l2tpdetach(void)
pserialize_destroy(l2tp_psz);
mutex_destroy(&l2tp_hash.lock);
+ mutex_destroy(&l2tp_softcs.lock);
+
return error;
}