Skip to content

Commit a0296dd

Browse files
vgalntThFabba
authored andcommitted
[USBPORT] In USBHI_GetExtendedHubInformation, pass the correct port index to RH_GetPortStatus.
1 parent c0f157e commit a0296dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/usbport/iface.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ USBHI_GetExtendedHubInformation(IN PVOID BusContext,
476476
HubInfoBuffer->Port[ix].PortAttributes = USB_PORTATTR_SHARED_USB2;
477477

478478
Packet->RH_GetPortStatus(FdoExtension->MiniPortExt,
479-
ix,
479+
ix + 1,
480480
&PortStatus);
481481

482482
if (PortStatus.PortStatus.Usb20PortStatus.AsUshort16 & 0x8000)

0 commit comments

Comments
 (0)