mirror of
https://github.com/reactos/reactos.git
synced 2025-04-05 05:01:03 +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);
|
KeAcquireSpinLock(&FdoExtension->EndpointListSpinLock, &OldIrql);
|
||||||
|
|
||||||
Entry = &FdoExtension->EndpointList;
|
for (Entry = FdoExtension->EndpointList.Flink;
|
||||||
|
Entry && Entry != &FdoExtension->EndpointList;
|
||||||
while (Entry && Entry != &FdoExtension->EndpointList)
|
Entry = Entry->Flink)
|
||||||
{
|
{
|
||||||
endpoint = CONTAINING_RECORD(Entry,
|
endpoint = CONTAINING_RECORD(Entry,
|
||||||
USBPORT_ENDPOINT,
|
USBPORT_ENDPOINT,
|
||||||
|
@ -1376,8 +1376,6 @@ USBPORT_InvalidateEndpointHandler(IN PDEVICE_OBJECT FdoDevice,
|
||||||
IsAddEntry = TRUE;
|
IsAddEntry = TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Entry = endpoint->EndpointLink.Flink;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
KeReleaseSpinLock(&FdoExtension->EndpointListSpinLock, OldIrql);
|
KeReleaseSpinLock(&FdoExtension->EndpointListSpinLock, OldIrql);
|
||||||
|
|
Loading…
Reference in a new issue