linux/drivers/dma/ti
Alexander Chesnokov 0294b6dd51 dmaengine: ti: k3-udma-glue: fix NULL dereference in k3_udma_glue_release_rx_chn()
If devm_kcalloc() for rx_chn->flows fails in a channel request function,
the error path calls k3_udma_glue_release_rx_chn(), which dereferences
the NULL rx_chn->flows pointer in k3_udma_glue_release_rx_flow().

Skip the flow release loop in k3_udma_glue_release_rx_chn() when
rx_chn->flows is not allocated.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: d702419134 ("dmaengine: ti: k3-udma: Add glue layer for non DMAengine users")
Cc: stable@vger.kernel.org
Reported-by: Pavel Zhigulin <Pavel.Zhigulin@kaspersky.com>
Signed-off-by: Alexander Chesnokov <Alexander.Chesnokov@kaspersky.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20260812053426.3521589-1-Alexander.Chesnokov@kaspersky.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2026-09-03 21:24:48 +05:30
..
cppi41.c dmaengine: ti: Remove redundant pm_runtime_mark_last_busy() calls 2025-12-16 22:22:49 +05:30
dma-crossbar.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
edma.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
k3-psil-am62.c dmaengine: ti: k3-psil-am62: Fix SPI PDMA data 2023-11-23 14:15:53 +05:30
k3-psil-am62a.c dmaengine: ti: k3-psil-am62a: Fix SPI PDMA data 2023-11-24 14:14:00 +05:30
k3-psil-am62p.c dmaengine: ti: k3-udma: Add PSIL threads for AM62P and J722S 2023-12-21 21:45:18 +05:30
k3-psil-am64.c dmaengine: ti: k3-psil: Add initial map for AM64 2020-12-11 21:20:09 +05:30
k3-psil-am654.c dmaengine: ti: k3-psil: make symbols static 2020-01-21 13:10:24 +05:30
k3-psil-j721e.c dmaengine: ti: k3-psil: add additional TX threads for j721e 2022-09-29 21:48:09 +05:30
k3-psil-j721s2.c dmaengine: ti: k3-psil-j721s2: Add entry for CSI2RX 2024-01-30 22:14:28 +05:30
k3-psil-j784s4.c dmaengine: ti: k3-psil: Add PSI-L thread support for J784s4 2023-03-31 18:17:06 +05:30
k3-psil-j7200.c dmaengine: ti: k3-psil: add additional TX threads for j7200 2022-09-29 21:48:09 +05:30
k3-psil-priv.h dmaengine: ti: k3-udma: Add PSIL threads for AM62P and J722S 2023-12-21 21:45:18 +05:30
k3-psil.c dmaengine: ti: add missing MODULE_DESCRIPTION() macros 2024-06-28 13:04:38 +05:30
k3-udma-glue.c dmaengine: ti: k3-udma-glue: fix NULL dereference in k3_udma_glue_release_rx_chn() 2026-09-03 21:24:48 +05:30
k3-udma-private.c dmaengine: ti: k3-udma: fix device leak on udma lookup 2025-12-14 14:47:25 +05:30
k3-udma.c dmaengine: Constify struct dma_descriptor_metadata_ops 2026-07-17 18:00:34 +05:30
k3-udma.h dmaengine: ti: k3-udma: Remove unused declarations 2024-08-28 23:35:13 +05:30
Kconfig dmaengine: ti: k3-udma: enable compile testing 2025-12-16 21:37:05 +05:30
Makefile dmaengine: ti: k3-udma: Add PSIL threads for AM62P and J722S 2023-12-21 21:45:18 +05:30
omap-dma.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00