svn commit: r275822 - stable/10/sys/netipsec

Andrey V. Elsukov ae at FreeBSD.org
Tue Dec 16 11:24:09 UTC 2014


Author: ae
Date: Tue Dec 16 11:24:07 2014
New Revision: 275822
URL: https://svnweb.freebsd.org/changeset/base/275822

Log:
  MFC r275575:
    key_getspacq() returns holding the spacq_lock. Unlock it in all cases.
  
  Sponsored by:	Yandex LLC

Modified:
  stable/10/sys/netipsec/key.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/netipsec/key.c
==============================================================================
--- stable/10/sys/netipsec/key.c	Tue Dec 16 09:49:07 2014	(r275821)
+++ stable/10/sys/netipsec/key.c	Tue Dec 16 11:24:07 2014	(r275822)
@@ -2336,7 +2336,8 @@ key_spdacquire(sp)
 		} else {
 			/* increment counter and do nothing. */
 			newspacq->count++;
-			return 0;
+			SPACQ_UNLOCK();
+			return (0);
 		}
 		SPACQ_UNLOCK();
 	} else {


More information about the svn-src-stable mailing list