mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Dispose the kernel stack of the proper thread.
Submitted by: alc MFC after: 1 week
This commit is contained in:
parent
cbc3c1f687
commit
b6b2d1bf88
1 changed files with 1 additions and 1 deletions
|
|
@ -292,7 +292,7 @@ norfproc_fail:
|
|||
} else {
|
||||
if (td2->td_kstack == 0 || td2->td_kstack_pages != pages) {
|
||||
if (td2->td_kstack != 0)
|
||||
vm_thread_dispose(td);
|
||||
vm_thread_dispose(td2);
|
||||
if (!thread_alloc_stack(td2, pages)) {
|
||||
error = ENOMEM;
|
||||
goto fail1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue