dmaengine: omap-dma: 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>
This commit is contained in:
parent
1c7f072d94
commit
b1faf0f564
1 changed files with 1 additions and 1 deletions
|
@ -1311,7 +1311,7 @@ static int omap_dma_terminate_all(struct dma_chan *chan)
|
||||||
* c->desc is NULL and exit.)
|
* c->desc is NULL and exit.)
|
||||||
*/
|
*/
|
||||||
if (c->desc) {
|
if (c->desc) {
|
||||||
omap_dma_desc_free(&c->desc->vd);
|
vchan_terminate_vdesc(&c->desc->vd);
|
||||||
c->desc = NULL;
|
c->desc = NULL;
|
||||||
/* Avoid stopping the dma twice */
|
/* Avoid stopping the dma twice */
|
||||||
if (!c->paused)
|
if (!c->paused)
|
||||||
|
|
Loading…
Add table
Reference in a new issue