Re: [PATCH v2] dma: mic_x100_dma: use devm_kzalloc to fix an issue

2018-08-26 Thread Vinod
On 22-08-18, 10:40, Huang Shijie wrote: > The following patch introduced an issue. > commit f6206f00d8c5 ("dmaengine: mic_x100_dma: use the new helper to > simplify the code") > > This issue is : > > kfree(mic_dma_dev) > . > dma_async_device_unregister(mic_dma_dev->devi

[PATCH v2] dma: mic_x100_dma: use devm_kzalloc to fix an issue

2018-08-21 Thread Huang Shijie
The following patch introduced an issue. commit f6206f00d8c5 ("dmaengine: mic_x100_dma: use the new helper to simplify the code") This issue is : kfree(mic_dma_dev) . dma_async_device_unregister(mic_dma_dev->device); Free the memory, and use it again. So use dev