mirror of
https://github.com/opnsense/src.git
synced 2026-04-24 07:37:25 -04:00
Missing unlock.
Approved by: re/jhb
This commit is contained in:
parent
b3cdf7ae2e
commit
0e335eaeb5
1 changed files with 2 additions and 0 deletions
|
|
@ -111,6 +111,8 @@ _set_curthread(ucontext_t *uc, struct pthread *thr, int *err)
|
|||
if (ldt_free == NULL) {
|
||||
/* Concurrent thread limit reached */
|
||||
*err = curthread->error = EAGAIN;
|
||||
if (thr != _thread_initial)
|
||||
_SPINUNLOCK(&ldt_lock);
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue