diff options
| author | Vladislav Efanov <[email protected]> | 2023-05-17 17:25:18 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2023-05-29 14:17:28 +0000 |
| commit | 097fb3ee710d4de83b8d4f5589e8ee13e0f0541e (patch) | |
| tree | 8cf247e918124b32a80d9f3bc249074147f675ca /drivers/usb/cdns3/cdns3-starfive.c | |
| parent | usb: typec: qcom: set pm8150b_typec_res storage-class-specifier to static (diff) | |
| download | kernel-097fb3ee710d4de83b8d4f5589e8ee13e0f0541e.tar.gz kernel-097fb3ee710d4de83b8d4f5589e8ee13e0f0541e.zip | |
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 'drivers/usb/cdns3/cdns3-starfive.c')
0 files changed, 0 insertions, 0 deletions
