Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MdeModulePkg/Bus/Pci: Fix Descriptor Misalignment in USB Config Handling #6437

Closed
wants to merge 2 commits into from

Commits on Nov 13, 2024

  1. 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]>
    AniketSurekar committed Nov 13, 2024
    Configuration menu
    Copy the full SHA
    a879ed4 View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2024

  1. Configuration menu
    Copy the full SHA
    244a779 View commit details
    Browse the repository at this point in the history