audk/MdeModulePkg/Bus/Pci/XhciPei
Aniket_Surekar 333e9638ad MdeModulePkg/Bus/Pci: Fix Descriptor Misalignment in USB Config Handling
The issue with locating the expected interface and endpoint descriptors
arises because `configDesc` (USB_CONFIG_DESCRIPTOR) and `IfDesc`
(USB_INTERFACE_DESCRIPTOR) are incremented by structure size rather than
by actual descriptor length.

Specifically:
  - `configDesc` should be incremented by its actual length.
  - `IfDesc` should be incremented by its actual length.

This incorrect increment causes misalignment, preventing access to the
subsequent interface and endpoint descriptors.

[Suggested Solution]
Update the code to increment the pointers by the actual descriptor lengths,
ensuring proper access to all descriptors in the USB configuration.

Signed-off-by: Aniket Surekar <Aniket.Surekar@Dell.com>
2024-12-06 01:45:22 +00:00
..
DmaMem.c MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
UsbHcMem.c MdeModulePkg/Xhci: Skip size round up for TRB during address translation 2023-09-28 02:02:11 +00:00
UsbHcMem.h MdeModulePkg/Xhci: Skip size round up for TRB during address translation 2023-09-28 02:02:11 +00:00
XhcPeim.c MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
XhcPeim.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
XhciPei.inf
XhciPei.uni
XhciPeiExtra.uni
XhciReg.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
XhciSched.c MdeModulePkg/Bus/Pci: Fix Descriptor Misalignment in USB Config Handling 2024-12-06 01:45:22 +00:00
XhciSched.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00