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
parent
aa725898e0
commit
53d2794ec0
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue