Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netipsec Add missing mutex_exit
details: https://anonhg.NetBSD.org/src/rev/98eeaac32ac6
branches: trunk
changeset: 355644:98eeaac32ac6
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Tue Aug 08 01:56:49 2017 +0000
description:
Add missing mutex_exit
diffstat:
sys/netipsec/key.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r fb64e04ccf0e -r 98eeaac32ac6 sys/netipsec/key.c
--- a/sys/netipsec/key.c Tue Aug 08 01:56:10 2017 +0000
+++ b/sys/netipsec/key.c Tue Aug 08 01:56:49 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: key.c,v 1.214 2017/08/08 01:56:10 ozaki-r Exp $ */
+/* $NetBSD: key.c,v 1.215 2017/08/08 01:56:49 ozaki-r Exp $ */
/* $FreeBSD: src/sys/netipsec/key.c,v 1.3.2.3 2004/02/14 22:23:23 bms Exp $ */
/* $KAME: key.c,v 1.191 2001/06/27 10:46:49 sakane Exp $ */
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: key.c,v 1.214 2017/08/08 01:56:10 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: key.c,v 1.215 2017/08/08 01:56:49 ozaki-r Exp $");
/*
* This code is referd to RFC 2367
@@ -6373,8 +6373,10 @@
} else {
/* make new entry for blocking to send SADB_ACQUIRE. */
newacq = key_newacq(saidx);
- if (newacq == NULL)
+ if (newacq == NULL) {
+ mutex_exit(&key_misc.lock);
return ENOBUFS;
+ }
/* add to key_misc.acqlist */
LIST_INSERT_HEAD(&key_misc.acqlist, newacq, chain);
Home |
Main Index |
Thread Index |
Old Index