mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 11:06:42 +00:00
[USBPORT] Fix endless loop, occasionally happened on real hardware
This commit is contained in:
parent
d9daaed325
commit
fc14c095f5
1 changed files with 3 additions and 2 deletions
|
@ -1261,7 +1261,7 @@ USBPORT_FlushController(IN PDEVICE_OBJECT FdoDevice)
|
||||||
PUSBPORT_DEVICE_EXTENSION FdoExtension;
|
PUSBPORT_DEVICE_EXTENSION FdoExtension;
|
||||||
PLIST_ENTRY Entry;
|
PLIST_ENTRY Entry;
|
||||||
PUSBPORT_ENDPOINT Endpoint;
|
PUSBPORT_ENDPOINT Endpoint;
|
||||||
ULONG KilledTransfers = 0;
|
ULONG KilledTransfers;
|
||||||
PLIST_ENTRY EndpointList;
|
PLIST_ENTRY EndpointList;
|
||||||
KIRQL OldIrql;
|
KIRQL OldIrql;
|
||||||
LIST_ENTRY FlushList;
|
LIST_ENTRY FlushList;
|
||||||
|
@ -1301,6 +1301,7 @@ USBPORT_FlushController(IN PDEVICE_OBJECT FdoDevice)
|
||||||
|
|
||||||
KeReleaseSpinLock(&FdoExtension->EndpointListSpinLock, OldIrql);
|
KeReleaseSpinLock(&FdoExtension->EndpointListSpinLock, OldIrql);
|
||||||
|
|
||||||
|
KilledTransfers = 0;
|
||||||
while (!IsListEmpty(&FlushList))
|
while (!IsListEmpty(&FlushList))
|
||||||
{
|
{
|
||||||
Endpoint = CONTAINING_RECORD(FlushList.Flink,
|
Endpoint = CONTAINING_RECORD(FlushList.Flink,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue