Module Name: src Committed By: mlelstv Date: Sun May 28 14:16:05 UTC 2017
Modified Files: src/sys/netipsec: key.c Log Message: release key_mtx on return path. To generate a diff of this commit: cvs rdiff -u -r1.145 -r1.146 src/sys/netipsec/key.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/netipsec/key.c diff -u src/sys/netipsec/key.c:1.145 src/sys/netipsec/key.c:1.146 --- src/sys/netipsec/key.c:1.145 Fri May 26 08:26:22 2017 +++ src/sys/netipsec/key.c Sun May 28 14:16:05 2017 @@ -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 @@ key_acquire(const struct secasindex *sai } else { /* increment counter and do nothing. */ newacq->count++; + mutex_exit(&key_mtx); return 0; } } else {