]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
dmaengine: axi-dmac: fix possible race in remove()
authorNuno Sa <nuno.sa@analog.com>
Thu, 28 Mar 2024 13:58:50 +0000 (14:58 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Jun 2024 12:40:34 +0000 (14:40 +0200)
commit2682135f23b20e4993e2972f77f853bf4cf15e8d
tree221437f52132b3e66272f88d3ce47c46139f6b13
parent5ee6b17dc56101d46c53cb30e3fc60ceaad3d16d
dmaengine: axi-dmac: fix possible race in remove()

commit 1bc31444209c8efae98cb78818131950d9a6f4d6 upstream.

We need to first free the IRQ before calling of_dma_controller_free().
Otherwise we could get an interrupt and schedule a tasklet while
removing the DMA controller.

Fixes: 0e3b67b348b8 ("dmaengine: Add support for the Analog Devices AXI-DMAC DMA controller")
Cc: stable@kernel.org
Signed-off-by: Nuno Sa <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20240328-axi-dmac-devm-probe-v3-1-523c0176df70@analog.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/dma/dma-axi-dmac.c