diff options
author | Vladislav Efanov <VEfanov@ispras.ru> | 2023-05-17 19:25:18 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-05-29 16:17:28 +0200 |
commit | 097fb3ee710d4de83b8d4f5589e8ee13e0f0541e (patch) | |
tree | 8cf247e918124b32a80d9f3bc249074147f675ca /samples | |
parent | usb: typec: qcom: set pm8150b_typec_res storage-class-specifier to static (diff) | |
download | linux-097fb3ee710d4de83b8d4f5589e8ee13e0f0541e.tar.xz linux-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 <VEfanov@ispras.ru>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Link: https://lore.kernel.org/r/20230517172518.442591-1-VEfanov@ispras.ru
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions