1
0
Fork 0

MLK-19931-2: dmaengine: fsl-edma: fix potential kernel crash in cyclic

Fix potential kernel crash issue  on fsl-edma as fsl-edma-v3.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Acked-by: Fugang Duan <fugang.duan@nxp.com>
pull/10/head
Robin Gong 2018-10-16 01:33:35 +08:00 committed by Jason Liu
parent aa725898e0
commit 53d2794ec0
1 changed files with 1 additions and 0 deletions

View File

@ -377,6 +377,7 @@ static int fsl_edma_terminate_all(struct dma_chan *chan)
fsl_edma_disable_request(fsl_chan);
fsl_chan->edesc = NULL;
fsl_chan->idle = true;
fsl_chan->vchan.cyclic = NULL;
vchan_get_all_descriptors(&fsl_chan->vchan, &head);
spin_unlock_irqrestore(&fsl_chan->vchan.lock, flags);
vchan_dma_desc_free_list(&fsl_chan->vchan, &head);