diff options
| author | Michael D Kinney <michael.d.kinney@intel.com> | 2026-10-17 00:45:07 +0300 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2026-10-22 00:53:42 +0300 |
| commit | 52fa6fe8996f4b11881757b9300ee4ec584432ba (patch) | |
| tree | d8a1d3c5fed7de0e59b1b0f939ccc122c7203d6a /MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptInternalFormat.h | |
| parent | bf25b6e4017b120decd2bb97384a8f319ba4303e (diff) | |
| download | edk2-52fa6fe8996f4b11881757b9300ee4ec584432ba.tar.xz | |
MdeModulePkg/UsbBusDxe: Free BOS buffer on read failure
UsbGetDevBosDesc() allocates a buffer for the initial BOS descriptor
request. If that request fails, the success-only cleanup is skipped and
the function returns without freeing the buffer. Repeated enumeration
attempts can leak one allocation per failure.
Free the initial buffer before returning the transfer error.
The leaking retrieval helper was introduced by PR #12714:
https://github.com/tianocore/edk2/pull/12714
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Diffstat (limited to 'MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptInternalFormat.h')
0 files changed, 0 insertions, 0 deletions
