Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netipsec release key_mtx on return path.



details:   https://anonhg.NetBSD.org/src/rev/7bb09c1c5945
branches:  trunk
changeset: 353918:7bb09c1c5945
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Sun May 28 14:16:05 2017 +0000

description:
release key_mtx on return path.

diffstat:

 sys/netipsec/key.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 7c50a5f1259e -r 7bb09c1c5945 sys/netipsec/key.c
--- a/sys/netipsec/key.c        Sun May 28 14:14:22 2017 +0000
+++ b/sys/netipsec/key.c        Sun May 28 14:16:05 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: key.c,v 1.145 2017/05/26 08:26:22 ozaki-r Exp $        */
+/*     $NetBSD: key.c,v 1.146 2017/05/28 14:16:05 mlelstv 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.145 2017/05/26 08:26:22 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: key.c,v 1.146 2017/05/28 14:16:05 mlelstv Exp $");
 
 /*
  * This code is referd to RFC 2367
@@ -6254,6 +6254,7 @@
                } else {
                        /* increment counter and do nothing. */
                        newacq->count++;
+                       mutex_exit(&key_mtx);
                        return 0;
                }
        } else {



Home | Main Index | Thread Index | Old Index