linux/drivers/usb/dwc3
Vladislav Efanov c3b322b84a usb: dwc3: qcom: Fix potential memory leak
[ Upstream commit 097fb3ee71 ]

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: 2bc02355f8 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-07-19 16:21:52 +02:00
..
core.c USB: dwc3: fix use-after-free on core driver unbind 2023-06-21 16:00:57 +02:00
core.h usb: dwc3: fix gadget mode suspend interrupt handler issue 2023-05-30 14:03:16 +01:00
debug.h
debugfs.c
drd.c
dwc3-am62.c
dwc3-exynos.c
dwc3-haps.c
dwc3-imx8mp.c
dwc3-keystone.c
dwc3-meson-g12a.c
dwc3-of-simple.c
dwc3-omap.c
dwc3-pci.c
dwc3-qcom.c usb: dwc3: qcom: Fix potential memory leak 2023-07-19 16:21:52 +02:00
dwc3-st.c
dwc3-xilinx.c
ep0.c
gadget.c usb: dwc3: gadget: Propagate core init errors to UDC during pullup 2023-07-19 16:21:45 +02:00
gadget.h
host.c
io.h
Kconfig
Makefile
trace.c
trace.h
ulpi.c