mirror of
https://github.com/torvalds/linux.git
synced 2024-11-13 07:31:45 +00:00
eb91224e47
udma_get_*() checks if rchan/tchan/rflow is already allocated by checking if it has a NON NULL value. For the error cases, rchan/tchan/rflow will have error value and udma_get_*() considers this as already allocated (PASS) since the error values are NON NULL. This results in NULL pointer dereference error while de-referencing rchan/tchan/rflow. Reset the value of rchan/tchan/rflow to NULL if a channel request fails. CC: stable@vger.kernel.org Acked-by: Peter Ujfalusi <peter.ujfalusi@gmail.com> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Link: https://lore.kernel.org/r/20211031032411.27235-3-kishon@ti.com Signed-off-by: Vinod Koul <vkoul@kernel.org> |
||
---|---|---|
.. | ||
cppi41.c | ||
dma-crossbar.c | ||
edma.c | ||
k3-psil-am64.c | ||
k3-psil-am654.c | ||
k3-psil-j721e.c | ||
k3-psil-j7200.c | ||
k3-psil-priv.h | ||
k3-psil.c | ||
k3-udma-glue.c | ||
k3-udma-private.c | ||
k3-udma.c | ||
k3-udma.h | ||
Kconfig | ||
Makefile | ||
omap-dma.c |