key_getspacq() returns holding the spacq_lock. Unlock it in all cases.

MFC after:	1 week
Sponsored by:	Yandex LLC
This commit is contained in:
Andrey V. Elsukov 2014-12-07 06:47:00 +00:00
parent 39cbb549cc
commit 4268212124
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=275575

View File

@ -2313,7 +2313,8 @@ key_spdacquire(struct secpolicy *sp)
} else {
/* increment counter and do nothing. */
newspacq->count++;
return 0;
SPACQ_UNLOCK();
return (0);
}
SPACQ_UNLOCK();
} else {