]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dmaengine: dma-axi-dmac: Properly free struct axi_dmac_desc
authorNuno Sá <nuno.sa@analog.com>
Fri, 24 Apr 2026 17:40:15 +0000 (18:40 +0100)
committerVinod Koul <vkoul@kernel.org>
Mon, 8 Jun 2026 12:07:06 +0000 (17:37 +0530)
commit4910ce1b3b35687bb2a5e742c4bfbea3c647c980
treeb4b013c4b6d36bf368cd4e60a68712c1e0d58755
parent92f853f0645aebf1d05d333e97ab7c342ace1892
dmaengine: dma-axi-dmac: Properly free struct axi_dmac_desc

Use axi_dmac_free_desc() to free fully the descriptor at fail path when
call axi_dmac_alloc_desc() in axi_dmac_prep_peripheral_dma_vec().

Fixes: 74609e568670 ("dmaengine: dma-axi-dmac: Implement device_prep_peripheral_dma_vec")
Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20260424-dma-dmac-handle-vunmap-v4-2-90f43412fdc0@analog.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/dma-axi-dmac.c