Skip to content
Commit b2694260 authored by Sebastian von Ohr's avatar Sebastian von Ohr Committed by Vinod Koul
Browse files

dmaengine: xilinx_dma: Add missing check for empty list



The DMA transfer might finish just after checking the state with
dma_cookie_status, but before the lock is acquired. Not checking
for an empty list in xilinx_dma_tx_status may result in reading
random data or data corruption when desc is written to. This can
be reliably triggered by using dma_sync_wait to wait for DMA
completion.

Signed-off-by: default avatarSebastian von Ohr <vonohr@smaract.com>
Tested-by: default avatarRadhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Link: https://lore.kernel.org/r/20200303130518.333-1-vonohr@smaract.com
Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 172d59ec
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment