diff options
author | Britton Chesley <Brit.Chesley@amd.com> | 2023-05-16 15:40:50 -0500 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-07-03 12:23:26 +0000 |
commit | ed07a2bb11b358fdece44a760fc193d56f22cfb2 (patch) | |
tree | 0adbca744a59b5bae305384c04246e0a525f5c4e /BaseTools/Source/Python/Workspace/InfBuildData.py | |
parent | 4f174696fd8fbd9cc29c9f172e8e83fe6da5b070 (diff) | |
download | edk2-ed07a2bb11b358fdece44a760fc193d56f22cfb2.tar.gz edk2-ed07a2bb11b358fdece44a760fc193d56f22cfb2.tar.bz2 edk2-ed07a2bb11b358fdece44a760fc193d56f22cfb2.zip |
MdeModulePkg/UsbBusDxe: USB issue fix when the port reset
BZ #4456
Fixed a bug which led to an ASSERT due to the USB device
context being maintained after a port reset, but the
underlying XHCI context was uninitialized. Specifically,
Xhc->UsbDevContext is freed after a reset and only
re-allocates the default [0] enpoint transfer ring.
In order to avoid a memory leak, device enumeration is
performed after freeing the necessary buffers. This
allocates the Xhc->UsbDevContext for all endpoints of
the USB device.
Signed-off-by: Britton Chesley <Brit.Chesley@amd.com>
Diffstat (limited to 'BaseTools/Source/Python/Workspace/InfBuildData.py')
0 files changed, 0 insertions, 0 deletions