aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-debug.h
diff options
context:
space:
mode:
authorTudor Ambarus <[email protected]>2022-10-25 12:02:40 +0300
committerVinod Koul <[email protected]>2022-11-08 10:43:56 +0530
commit6e5ad28d16f082efeae3d0bd2e31f24bed218019 (patch)
tree5dacf053701d336b048ac5b2479fad19f73de043 /drivers/usb/cdns3/cdns3-debug.h
parentf645f85ae1104f8bd882f962ac0a69a1070076dd (diff)
dmaengine: at_hdmac: Protect atchan->status with the channel lock
Now that the complete callback call was removed from device_terminate_all(), we can protect the atchan->status with the channel lock. The atomic bitops on atchan->status do not substitute proper locking on the status, as one could still modify the status after the lock was dropped in atc_terminate_all() but before the atomic bitops were executed. Fixes: 078a6506141a ("dmaengine: at_hdmac: Fix deadlocks") Reported-by: Peter Rosin <[email protected]> Signed-off-by: Tudor Ambarus <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/lkml/[email protected]/ Acked-by: Nicolas Ferre <[email protected]> Link: https://lore.kernel.org/r/[email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions