linux/drivers/dma/sf-pdma
Brad Kim 8f6b6d0606 dmaengine: sf-pdma: Fix an error that calls callback twice
Because a callback is called twice when DMA transfer complete
the second callback may be possible to access a freed memory
if the first callback routines perform the dma_release_channel function.
So this patch serialized the callback functions

Signed-off-by: Brad Kim <brad.kim@semifive.com>
Tested-and-reviewed-by: Green Wan <green.wan@sifive.com>
Signed-off-by: Brad Kim <brad.kim@sifive.com>
Link: https://lore.kernel.org/r/20200903111726.3413-1-brad.kim@sifive.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2020-09-11 17:39:53 +05:30
..
Kconfig dmaengine: sf-pdma: add platform DMA support for HiFive Unleashed A00 2019-11-14 12:40:46 +05:30
Makefile dmaengine: sf-pdma: add platform DMA support for HiFive Unleashed A00 2019-11-14 12:40:46 +05:30
sf-pdma.c dmaengine: sf-pdma: Fix an error that calls callback twice 2020-09-11 17:39:53 +05:30
sf-pdma.h dmaengine: sf-pdma: move macro to header file 2019-11-22 11:15:28 +05:30