Message ID | 1456157030-54677-16-git-send-email-andriy.shevchenko@linux.intel.com (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
diff --git a/drivers/dma/dw/core.c b/drivers/dma/dw/core.c index cce0619..14d0df7 100644 --- a/drivers/dma/dw/core.c +++ b/drivers/dma/dw/core.c @@ -1485,6 +1485,8 @@ void dw_dma_cyclic_free(struct dma_chan *chan) kfree(cdesc->desc); kfree(cdesc); + dwc->cdesc = NULL; + clear_bit(DW_DMA_IS_CYCLIC, &dwc->flags); } EXPORT_SYMBOL(dw_dma_cyclic_free);