Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net fix ipsec(4) encap_lock leak.
details: https://anonhg.NetBSD.org/src/rev/168bffdcde97
branches: trunk
changeset: 360904:168bffdcde97
user: knakahara <knakahara%NetBSD.org@localhost>
date: Fri Apr 06 09:24:13 2018 +0000
description:
fix ipsec(4) encap_lock leak.
XXX pullup-8
diffstat:
sys/net/if_ipsec.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 2d90c5239afa -r 168bffdcde97 sys/net/if_ipsec.c
--- a/sys/net/if_ipsec.c Fri Apr 06 09:23:36 2018 +0000
+++ b/sys/net/if_ipsec.c Fri Apr 06 09:24:13 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ipsec.c,v 1.7 2018/03/13 02:12:05 knakahara Exp $ */
+/* $NetBSD: if_ipsec.c,v 1.8 2018/04/06 09:24:13 knakahara Exp $ */
/*
* Copyright (c) 2017 Internet Initiative Japan Inc.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ipsec.c,v 1.7 2018/03/13 02:12:05 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ipsec.c,v 1.8 2018/04/06 09:24:13 knakahara Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -1166,6 +1166,7 @@
if (if_ipsec_variant_is_unconfigured(ovar)) {
/* nothing to do */
mutex_exit(&sc->ipsec_lock);
+ encap_lock_exit();
return 0;
}
Home |
Main Index |
Thread Index |
Old Index