dmaengine: edma: Use vchan_terminate_vdesc() instead of desc_free
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Tue, 14 Nov 2017 14:32:06 +0000 (16:32 +0200)
committerVinod Koul <vinod.koul@intel.com>
Mon, 4 Dec 2017 17:03:51 +0000 (22:33 +0530)
commit174334bcd9f87286aead3b1a470a82348f9d43ec
treef9e105cf2bd4d49767ccf62bce89af3efdf03245
parentb1faf0f564ffa6c58f7c7c9a9263dc0f7f78e215
dmaengine: edma: Use vchan_terminate_vdesc() instead of desc_free

To avoid race with vchan_complete, use the race free way to terminate
running transfer.

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