pc_serial: skip waiting for pending DPC in free hook
Since it's possible to fail queuing them, the count doesn't go down to 0, and the process just hangs forever on exit. It might not be necessary anyway.
This commit is contained in:
parent
aa05d85ca6
commit
efbc894614
@ -702,8 +702,8 @@ SerialDevice::Free()
|
|||||||
|
|
||||||
// wait until currently executing DPC is done. In case another one
|
// wait until currently executing DPC is done. In case another one
|
||||||
// is run beyond this point it will just bail out on !IsOpen().
|
// is run beyond this point it will just bail out on !IsOpen().
|
||||||
while (atomic_get(&fPendingDPC))
|
//while (atomic_get(&fPendingDPC))
|
||||||
snooze(1000);
|
// snooze(1000);
|
||||||
|
|
||||||
gTTYModule->tty_destroy_cookie(fSystemTTYCookie);
|
gTTYModule->tty_destroy_cookie(fSystemTTYCookie);
|
||||||
gTTYModule->tty_destroy_cookie(fDeviceTTYCookie);
|
gTTYModule->tty_destroy_cookie(fDeviceTTYCookie);
|
||||||
|
Loading…
Reference in New Issue
Block a user