Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net fix missing mutex_destroy when modunload.
details: https://anonhg.NetBSD.org/src/rev/037103bb2fae
branches: trunk
changeset: 352479:037103bb2fae
user: knakahara <knakahara%NetBSD.org@localhost>
date: Mon Apr 03 10:17:17 2017 +0000
description:
fix missing mutex_destroy when modunload.
pointed out by s-yamaguchi@IIJ, thanks.
diffstat:
sys/net/if_l2tp.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 809455420d83 -r 037103bb2fae sys/net/if_l2tp.c
--- a/sys/net/if_l2tp.c Mon Apr 03 10:08:24 2017 +0000
+++ b/sys/net/if_l2tp.c Mon Apr 03 10:17:17 2017 +0000
@@ -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 @@
pserialize_destroy(l2tp_psz);
mutex_destroy(&l2tp_hash.lock);
+ mutex_destroy(&l2tp_softcs.lock);
+
return error;
}
Home |
Main Index |
Thread Index |
Old Index