linux/drivers/usb/dwc3
Vladislav Efanov 097fb3ee71 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: 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>
2023-05-29 15:17:28 +01:00
..
core.c Merge 6.4-rc4 into usb-next 2023-05-28 15:25:53 +01:00
core.h Merge 6.4-rc4 into usb-next 2023-05-28 15:25:53 +01:00
debug.h usb: dwc3: Add function suspend and function wakeup support 2023-03-29 10:27:01 +02:00
debugfs.c usb: dwc3: debugfs: Resume dwc3 before accessing registers 2023-05-13 17:56:22 +09:00
drd.c usb: dwc3: Don't switch OTG -> peripheral if extcon is present 2022-10-22 12:29:43 +02:00
dwc3-am62.c usb: dwc3-am62: Convert to platform remove callback returning void 2023-05-28 12:36:23 +01:00
dwc3-exynos.c usb: dwc3-exynos: Convert to platform remove callback returning void 2023-05-28 12:36:23 +01:00
dwc3-haps.c usb: dwc3: haps: Constify the software node 2021-02-04 15:42:06 +01:00
dwc3-imx8mp.c usb: dwc3-imx8mp: Convert to platform remove callback returning void 2023-05-28 12:36:24 +01:00
dwc3-keystone.c usb: dwc3-keystone: Convert to platform remove callback returning void 2023-05-28 12:36:24 +01:00
dwc3-meson-g12a.c usb: dwc3-meson-g12a: Convert to platform remove callback returning void 2023-05-28 12:36:24 +01:00
dwc3-of-simple.c usb: dwc3-of-simple: Convert to platform remove callback returning void 2023-05-28 12:36:24 +01:00
dwc3-omap.c usb: dwc3-omap: Convert to platform remove callback returning void 2023-05-28 12:36:24 +01:00
dwc3-pci.c Merge 6.3-rc6 into usb-next 2023-04-10 08:56:59 +02:00
dwc3-qcom.c usb: dwc3: qcom: Fix potential memory leak 2023-05-29 15:17:28 +01:00
dwc3-st.c usb: dwc3-st: Convert to platform remove callback returning void 2023-05-28 12:36:24 +01:00
dwc3-xilinx.c usb: dwc3-xilinx: Convert to platform remove callback returning void 2023-05-28 12:36:24 +01:00
ep0.c usb: dwc3: Add error logs for unknown endpoint events 2023-05-13 18:57:30 +09:00
gadget.c USB: fix up merge of 6.4-rc4 into usb-next 2023-05-28 17:05:32 +01:00
gadget.h usb: dwc3: Fix ep0 handling when getting reset while doing control transfer 2022-05-19 18:14:16 +02:00
host.c usb: dwc3: host: remove dead code in dwc3_host_get_irq() 2023-03-29 09:02:25 +02:00
io.h usb: dwc3: fix incorrect kernel-doc comment syntax in files 2021-04-02 15:20:51 +02:00
Kconfig usb: dwc3: fix extcon dependency 2023-01-19 14:19:49 +01:00
Makefile drivers: usb: dwc3: Add AM62 USB wrapper driver 2022-04-21 18:31:56 +02:00
trace.c usb: dwc3: fix incorrect kernel-doc comment syntax in files 2021-04-02 15:20:51 +02:00
trace.h usb: dwc3: change some trace event __dynamic_array() to __get_buf() 2023-03-09 15:35:03 +01:00
ulpi.c usb: dwc3: ulpi: Fix USB2.0 HS/FS/LS PHY suspend regression 2020-12-28 15:55:44 +01:00