diff options
author | John Keeping <john@metanate.com> | 2018-07-17 13:48:16 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2018-07-25 15:29:57 +0300 |
commit | e49756544a21f5625b379b3871d27d8500764670 (patch) | |
tree | ee855be5edc379bd8b8e13db4104b7746434c660 /Documentation/ABI/testing/ppc-memtrace | |
parent | 2f903bab92dea8dec8c93e4fa3c7c5295ef0a0fe (diff) | |
download | linux-e49756544a21f5625b379b3871d27d8500764670.tar.xz |
dmaengine: pl330: fix irq race with terminate_all
In pl330_update() when checking if a channel has been aborted, the
channel's lock is not taken, only the overall pl330_dmac lock. But in
pl330_terminate_all() the aborted flag (req_running==-1) is set under
the channel lock and not the pl330_dmac lock.
With threaded interrupts, this leads to a potential race:
pl330_terminate_all pl330_update
------------------- ------------
lock channel
entry
lock pl330
_stop channel
unlock pl330
lock pl330
check req_running != -1
req_running = -1
_start channel
Signed-off-by: John Keeping <john@metanate.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'Documentation/ABI/testing/ppc-memtrace')
0 files changed, 0 insertions, 0 deletions