diff options
author | Aniket_Surekar <Aniket.Surekar@Dell.com> | 2024-11-14 21:27:15 +0530 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-12-06 01:45:22 +0000 |
commit | 333e9638ad29828f4cac64ad966b0e7f8c9b0c66 (patch) | |
tree | b8a92c8e0a82956afb72147a8a0c3d5fa2e1b708 /BaseTools/Source/Python | |
parent | e8668d2dee2f001a053d9e50f431e2f1f8165b8b (diff) | |
download | edk2-333e9638ad29828f4cac64ad966b0e7f8c9b0c66.zip edk2-333e9638ad29828f4cac64ad966b0e7f8c9b0c66.tar.gz edk2-333e9638ad29828f4cac64ad966b0e7f8c9b0c66.tar.bz2 |
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>
Diffstat (limited to 'BaseTools/Source/Python')
0 files changed, 0 insertions, 0 deletions