diff options
| author | Vladislav Efanov <[email protected]> | 2023-05-17 20:25:18 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2023-05-29 15:17:28 +0100 |
| commit | 097fb3ee710d4de83b8d4f5589e8ee13e0f0541e (patch) | |
| tree | 8cf247e918124b32a80d9f3bc249074147f675ca /tools/perf/scripts/python/task-analyzer.py | |
| parent | c722576b2454c44934e27bd73fdf828e720fb237 (diff) | |
usb: dwc3: qcom: Fix potential memory leak
Function dwc3_qcom_probe() allocates memory for resource structure
which is pointed by parent_res pointer. This memory is not
freed. This leads to memory leak. Use stack memory to prevent
memory leak.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Fixes: 2bc02355f8ba ("usb: dwc3: qcom: Add support for booting with ACPI")
Signed-off-by: Vladislav Efanov <[email protected]>
Acked-by: Shawn Guo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions