summaryrefslogtreecommitdiff
path: root/crypto/aead.c
diff options
context:
space:
mode:
authorSebastian von Ohr <vonohr@smaract.com>2020-03-03 14:05:18 +0100
committerVinod Koul <vkoul@kernel.org>2020-04-15 21:42:11 +0530
commitb269426011bcfd97b7c3101abfe1a99147b6f40b (patch)
tree96e729dae0ec64fd5aa4dfff5de6f9975ed9c7ad /crypto/aead.c
parent172d59ecd61b89f535ad99a7e531c0f111453b9a (diff)
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: Sebastian von Ohr <vonohr@smaract.com> Tested-by: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com> Link: https://lore.kernel.org/r/20200303130518.333-1-vonohr@smaract.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'crypto/aead.c')
0 files changed, 0 insertions, 0 deletions