EHCI: Destroy the cleanup semaphore on teardown.

Otherwise, the wait_for_thread() of the fCleanupThread will block
forever, stalling the boot process.

Fixes another part of #15004.
This commit is contained in:
Augustin Cavalier 2019-04-18 14:06:46 -04:00
parent e8b2085d87
commit 9f7fb0e5c9

View File

@ -659,6 +659,7 @@ EHCI::~EHCI()
delete_sem(fAsyncAdvanceSem);
delete_sem(fFinishTransfersSem);
delete_sem(fFinishIsochronousTransfersSem);
delete_sem(fCleanupSem);
wait_for_thread(fFinishThread, &result);
wait_for_thread(fCleanupThread, &result);
wait_for_thread(fFinishIsochronousThread, &result);