summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorHuang Shijie <sjhuang@iluvatar.ai>2018-08-22 10:40:27 +0800
committerVinod Koul <vkoul@kernel.org>2018-08-27 11:16:04 +0530
commit111b009f7e8bcdfc8d565b1f0e3ee5072bb7490b (patch)
tree8f50bd17840261c04a0853ff21a4e083204b7f25 /tools/perf/scripts/python/export-to-postgresql.py
parent5b394b2ddf0347bef56e50c69a58773c94343ff3 (diff)
downloadlinux-stable-111b009f7e8bcdfc8d565b1f0e3ee5072bb7490b.tar.gz
linux-stable-111b009f7e8bcdfc8d565b1f0e3ee5072bb7490b.tar.bz2
linux-stable-111b009f7e8bcdfc8d565b1f0e3ee5072bb7490b.zip
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions