Skip to content
Commit 8f6b6d06 authored by Brad Kim's avatar Brad Kim Committed by Vinod Koul
Browse files

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: default avatarBrad Kim <brad.kim@semifive.com>
Tested-and-reviewed-by: default avatarGreen Wan <green.wan@sifive.com>
Signed-off-by: default avatarBrad Kim <brad.kim@sifive.com>
Link: https://lore.kernel.org/r/20200903111726.3413-1-brad.kim@sifive.com


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 78e7a522
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment