summaryrefslogtreecommitdiffstats
path: root/net/ax25
diff options
context:
space:
mode:
authorTudor Ambarus <tudor.ambarus@microchip.com>2021-12-15 13:01:08 +0200
committerVinod Koul <vkoul@kernel.org>2022-01-05 15:50:03 +0530
commitb63e5cb94ad6947ab5fe38b5a9417dcfd0bc6122 (patch)
tree0567b0ce953d5a8989ef92280e00ac2b722b1112 /net/ax25
parent506875c30fc5bf92246060bc3b4c38799646266b (diff)
downloadlinux-b63e5cb94ad6947ab5fe38b5a9417dcfd0bc6122.tar.bz2
dmaengine: at_xdmac: Fix race for the tx desc callback
The transfer descriptors were wrongly moved to the free descriptors list before calling the tx desc callback. As the DMA engine drivers drop any locks before calling the callback function, txd could be taken again, resulting in its callback called prematurely. Fix the race for the tx desc callback by moving the xfer desc into the free desc list after the callback is invoked. Fixes: e1f7c9eee707 ("dmaengine: at_xdmac: creation of the atmel eXtended DMA Controller driver") Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com> Link: https://lore.kernel.org/r/20211215110115.191749-6-tudor.ambarus@microchip.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'net/ax25')
0 files changed, 0 insertions, 0 deletions