Huang Shijie
111b009f7e
dmaengine: mic_x100_dma: use devm_kzalloc to fix an issue
...
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 devm_kzalloc to allocate mic_dma_dev to fix it.
When the Devres try to release the resources, it will call release at the
following order:
dma_async_device_unregister(mic_dma_dev->device);
.....
kfree(mic_dma_dev)
Fixes: f6206f00d8c5 ("dmaengine: mic_x100_dma: use the new helper to simplify the code")
Signed-off-by: Huang Shijie <sjhuang@iluvatar.ai>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2018-08-27 11:16:04 +05:30
..
2018-06-12 16:19:22 -07:00
2018-04-22 11:50:56 +05:30
2018-03-27 17:44:39 +05:30
2018-07-10 21:10:44 +05:30
2018-06-19 10:00:16 +05:30
2018-06-12 16:19:22 -07:00
2018-03-27 15:18:15 +05:30
2017-09-06 21:54:41 +05:30
2018-06-08 11:02:21 -07:00
2018-07-31 09:57:27 +05:30
2018-06-19 09:59:13 +05:30
2018-06-29 14:20:00 +05:30
2016-02-22 09:06:09 +05:30
2017-10-20 11:51:10 +05:30
2017-12-04 22:33:51 +05:30
2017-11-08 10:47:04 +05:30
2018-04-22 21:34:58 +05:30
2018-04-22 21:36:10 +05:30
2017-12-04 22:33:51 +05:30
2018-06-06 11:15:43 -07:00
2016-09-26 22:28:24 +05:30
2017-11-08 10:46:46 +05:30
2013-01-07 17:36:37 +01:00
2018-05-02 10:06:42 +05:30
2017-12-11 09:00:06 +05:30
2017-12-04 22:33:51 +05:30
2018-08-26 11:48:42 -07:00
2017-11-02 11:10:55 +01:00
2018-04-16 21:05:54 +05:30
2018-07-07 17:52:26 +02:00
2017-06-29 09:25:28 +05:30
2015-04-02 16:10:27 +05:30
2017-12-15 09:53:04 +05:30
2018-04-22 21:37:17 +05:30
2017-06-22 18:31:35 +05:30
2018-07-10 21:10:44 +05:30
2016-03-24 23:13:48 -07:00
2017-12-04 22:33:51 +05:30
2018-05-23 11:10:32 +05:30
2018-07-30 10:33:58 +05:30
2016-08-08 08:11:39 +05:30
2018-06-28 11:57:21 +05:30
2018-08-17 17:59:27 +05:30
2015-08-18 22:12:14 +05:30
2018-08-09 08:16:00 +05:30
2018-08-27 11:16:04 +05:30
2015-08-05 10:53:52 +05:30
2016-08-08 08:11:39 +05:30
2016-10-03 09:17:33 +05:30
2018-06-06 11:15:43 -07:00
2016-10-03 09:17:33 +05:30
2018-07-25 17:53:22 +05:30
2018-06-12 16:19:22 -07:00
2016-11-25 11:16:36 +05:30
2018-05-23 11:10:31 +05:30
2018-07-09 17:01:35 +05:30
2017-07-19 09:30:44 +05:30
2018-08-09 08:16:00 +05:30
2017-10-31 17:01:06 +05:30
2018-08-18 15:55:59 -07:00
2018-06-18 21:29:23 +02:00
2018-07-07 17:52:26 +02:00
2018-06-06 11:15:43 -07:00
2016-12-12 22:25:22 +05:30
2018-06-08 11:02:21 -07:00
2016-10-19 22:29:33 +05:30
2016-10-18 20:12:06 +05:30
2016-06-08 08:59:55 +05:30
2013-05-23 21:13:19 +02:00
2018-07-02 17:46:24 +05:30
2018-07-09 23:01:57 +05:30
2018-03-22 10:51:35 +05:30
2018-07-09 23:01:57 +05:30
2017-04-24 09:50:05 +05:30
2017-10-23 11:44:03 +05:30
2017-11-29 19:35:05 +05:30
2017-08-09 11:39:16 +05:30
2017-12-11 08:57:38 +05:30
2014-07-15 22:14:30 +05:30
2018-04-22 21:38:06 +05:30
2014-11-24 22:46:44 +01:00
2017-12-04 22:33:51 +05:30
2017-12-04 22:33:51 +05:30
2017-08-22 22:13:44 +05:30
2018-06-12 16:19:22 -07:00