dmaengine: edma: Fetch echan->edesc while holding lock in edma_comletion_handler
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Thu, 11 Feb 2016 13:17:48 +0000 (15:17 +0200)
committerVinod Koul <vinod.koul@intel.com>
Mon, 22 Feb 2016 02:49:23 +0000 (08:19 +0530)
commite4d8817cbe9dad5da7a8487184d1b9ee8c927d92
tree81f5cf754c0bf0ad2fcbfe429b58723e4c7edeca
parentb84730ffcfccbed76e7f623b336e9bba8d78d93e
dmaengine: edma: Fetch echan->edesc while holding lock in edma_comletion_handler

In order to avoid possible race condition when client drivers are using
dmaengine_terminate_sync() call to disable the channel.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Suggested-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/edma.c