audk/MdeModulePkg/Bus
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
..
Ata MdeModulePkg: Update ReceiveData and SendData function description 2024-03-13 02:48:38 +00:00
I2c/I2cDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Isa MdeModulePkg: Update the comments of ReadKeyStroke and ReadKeyStrokeEx 2024-04-03 10:25:06 +08:00
Pci MdeModulePkg/Bus/Pci: Fix Descriptor Misalignment in USB Config Handling 2024-12-06 01:45:22 +00:00
Scsi MdeModulePkg: Update ReceiveData and SendData function description 2024-03-13 02:48:38 +00:00
Sd MdeModulePkg: Update ReceiveData and SendData function description 2024-03-13 02:48:38 +00:00
Spi MdeModulePkg: SpiHc: SpiHc Drivers 2024-05-08 04:43:58 +00:00
Ufs MdeModulePkg: Added PPI support in UFS PEI driver. 2024-10-28 05:39:52 +00:00
Usb MdeModulePkg UsbNetwork: Use USB class definition from MdePkg 2024-10-22 05:40:04 +00:00