Branch: refs/heads/master
Home: https://github.com/tianocore/edk2
Commit: 333e9638ad29828f4cac64ad966b0e7f8c9b0c66
https://github.com/tianocore/edk2/commit/333e9638ad29828f4cac64ad966b0e7f8c9b0c66
Author: Aniket_Surekar <[email protected]>
Date: 2024-12-06 (Fri, 06 Dec 2024)
Changed paths:
M MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.c
M MdeModulePkg/Bus/Pci/XhciPei/XhciSched.c
Log Message:
-----------
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 <[email protected]>
To unsubscribe from these emails, change your notification settings at
https://github.com/tianocore/edk2/settings/notifications
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits