linux/drivers/usb/cdns3
Haoxiang Li 3348f444a4 usb: cdnsp: fix stream context array leak in cdnsp_alloc_stream_info()
cdnsp_alloc_stream_info() allocates stream_info->stream_ctx_array with
cdnsp_alloc_stream_ctx(). If a later stream ring allocation or stream
mapping update fails, the error path frees the allocated stream rings
and stream_rings array, but leaves stream_ctx_array allocated.

Free the stream context array before falling through to the stream_rings
cleanup path.

Fixes: 3d82904559 ("usb: cdnsp: cdns3 Add main part of Cadence USBSSP DRD Driver")
Cc: stable <stable@kernel.org>
Signed-off-by: Haoxiang Li <haoxiang_li2024@163.com>
Acked-by: Peter Chen <peter.chen@kernel.org>
Link: https://patch.msgid.link/20260622052627.696373-1-haoxiang_li2024@163.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2026-06-25 15:12:15 +01:00
..
cdns3-debug.h usb: cdns3: change trace event cdns3_ring() operation 2023-03-09 15:35:03 +01:00
cdns3-ep0.c
cdns3-gadget.c Linux 7.1-rc6 2026-06-01 17:39:51 +02:00
cdns3-gadget.h usb: cdns3: fix iso transfer error when mult is not zero 2024-01-04 16:01:44 +01:00
cdns3-imx.c usb: Switch back to struct platform_driver::remove() 2024-10-04 15:13:03 +02:00
cdns3-pci-wrap.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
cdns3-plat.c Linux 7.1-rc6 2026-06-01 17:39:51 +02:00
cdns3-starfive.c usb: Switch back to struct platform_driver::remove() 2024-10-04 15:13:03 +02:00
cdns3-ti.c usb: cdns3-ti: run HW init at resume() if HW was reset 2025-03-14 09:18:02 +01:00
cdns3-trace.c
cdns3-trace.h cdns3: Remove unused tracepoints 2025-09-06 15:23:39 +02:00
cdnsp-debug.h usb: cdnsp: Fix issue with CV Bad Descriptor test 2025-06-24 15:42:39 +01:00
cdnsp-ep0.c usb: cdnsp: Fix issue with CV Bad Descriptor test 2025-06-24 15:42:39 +01:00
cdnsp-gadget.c usb: cdns3: Add USBSSP platform driver support 2026-04-27 05:14:18 -06:00
cdnsp-gadget.h usb: cdnsp: add support for eUSB2v2 port 2026-04-27 05:14:17 -06:00
cdnsp-mem.c usb: cdnsp: fix stream context array leak in cdnsp_alloc_stream_info() 2026-06-25 15:12:15 +01:00
cdnsp-pci.c usb: cdnsp: Add support for device-only configuration 2026-05-22 11:36:05 +02:00
cdnsp-ring.c usb: cdnsp: add support for eUSB2v2 port 2026-04-27 05:14:17 -06:00
cdnsp-trace.c
cdnsp-trace.h cdnsp: Remove unused tracepoints 2025-09-06 15:23:39 +02:00
core.c usb: cdnsp: Add support for device-only configuration 2026-05-22 11:36:05 +02:00
core.h usb: cdnsp: Add support for device-only configuration 2026-05-22 11:36:05 +02:00
drd.c usb: cdnsp: Add support for device-only configuration 2026-05-22 11:36:05 +02:00
drd.h usb: cdns3: Add quirk flag to enable suspend residency 2024-06-04 15:41:10 +02:00
gadget-export.h usb: cdns3: Add USBSSP platform driver support 2026-04-27 05:14:18 -06:00
host-export.h usb: cdns3: Add USBSSP platform driver support 2026-04-27 05:14:18 -06:00
host.c usb: host: cdns3: forward lost power information to xhci 2025-03-14 09:18:03 +01:00
Kconfig usb: cdns3: Add USBSSP platform driver support 2026-04-27 05:14:18 -06:00
Makefile usb: cdns3: Add USBSSP platform driver support 2026-04-27 05:14:18 -06:00