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
39cbb549cc
commit
4268212124
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=275575
@ -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