mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[USBPORT] USBPORT_InvalidateEndpointHandler(): Properly enumerate endpoints
This commit is contained in:
parent
220bc820eb
commit
ed9f0dca14
1 changed files with 3 additions and 5 deletions
|
@ -1357,9 +1357,9 @@ USBPORT_InvalidateEndpointHandler(IN PDEVICE_OBJECT FdoDevice,
|
|||
{
|
||||
KeAcquireSpinLock(&FdoExtension->EndpointListSpinLock, &OldIrql);
|
||||
|
||||
Entry = &FdoExtension->EndpointList;
|
||||
|
||||
while (Entry && Entry != &FdoExtension->EndpointList)
|
||||
for (Entry = FdoExtension->EndpointList.Flink;
|
||||
Entry && Entry != &FdoExtension->EndpointList;
|
||||
Entry = Entry->Flink)
|
||||
{
|
||||
endpoint = CONTAINING_RECORD(Entry,
|
||||
USBPORT_ENDPOINT,
|
||||
|
@ -1376,8 +1376,6 @@ USBPORT_InvalidateEndpointHandler(IN PDEVICE_OBJECT FdoDevice,
|
|||
IsAddEntry = TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
Entry = endpoint->EndpointLink.Flink;
|
||||
}
|
||||
|
||||
KeReleaseSpinLock(&FdoExtension->EndpointListSpinLock, OldIrql);
|
||||
|
|
Loading…
Reference in a new issue