Forgot to unlock task in thread_deallocate_complete!

That function is a sort of paraphrase of and glued-together-mess of XNU's `thread_deallocate_complete` and `thread_terminate_queue_invoke`, and I guess I accidentally deleted the `task_unlock` part.
This commit is contained in:
Ariel Abreu 2020-09-21 21:17:01 -04:00
parent 17628ac35e
commit 1a163b5f24
No known key found for this signature in database
GPG Key ID: ECF8C2B9E8AD3E6B

View File

@ -506,6 +506,8 @@ static void thread_deallocate_complete(thread_t thread)
queue_remove(&task->threads, thread, thread_t, task_threads);
task->thread_count--;
task_unlock(task);
task_deallocate(task);
if (thread->linux_task != NULL)