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:
ae 2014-12-07 06:47:00 +00:00
parent 990e36073f
commit 9b3ccf0ab3

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 {