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:
parent
990e36073f
commit
9b3ccf0ab3
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user