From: Guennadi Liakhovetski Date: Sun, 3 Aug 2014 17:13:03 +0000 (+0200) Subject: dmaengine: nbpfaxi: fix a theoretical race X-Git-Tag: omap-for-v3.17/fixes-against-rc2~88^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67b166847009b009cd9fbcdef6b71558f49e1bd6;p=pandora-kernel.git 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 Signed-off-by: Vinod Koul --- Reading git-diff-tree failed