diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2014-08-03 19:13:03 +0200 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2014-08-04 13:30:31 +0530 |
commit | 67b166847009b009cd9fbcdef6b71558f49e1bd6 (patch) | |
tree | bfa91b9cb4d786d94b4ef76b5a6e04e895b08eb5 /lib | |
parent | b45b262cefd5b8eb2ba88d20e5bd295881293894 (diff) | |
download | linux-67b166847009b009cd9fbcdef6b71558f49e1bd6.tar.gz linux-67b166847009b009cd9fbcdef6b71558f49e1bd6.tar.bz2 linux-67b166847009b009cd9fbcdef6b71558f49e1bd6.zip |
dmaengine: nbpfaxi: fix a theoretical race
A race possibility exists if a DMA slave driver tries to free channel
resources witout waiting for all transfers to complete and without
explicitly terminating all requests. In such a case the IRQ processing
thread can race with .device_free_chan_resources(). To fix this race empty
all descriptor lists before freeing descriptor cache.
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski+renesas@gmail.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions