aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorBaolin Wang <[email protected]>2019-10-09 17:11:30 +0800
committerVinod Koul <[email protected]>2019-10-15 15:47:24 +0530
commitec1ac309596a7bdf206743b092748205f6cd5720 (patch)
treea8eb84c5ba3e1ec2a6b848c9a96292ea61810519 /tools/perf/util/trace-event-scripting.c
parent6c6de1ddb1be3840f2ed5cc9d009a622720940c9 (diff)
dmaengine: sprd: Fix the possible memory leak issue
If we terminate the channel to free all descriptors associated with this channel, we will leak the memory of current descriptor if the current descriptor is not completed, since it had been deteled from the desc_issued list and have not been added into the desc_completed list. Thus we should check if current descriptor is completed or not, when freeing the descriptors associated with one channel, if not, we should free it to avoid this issue. Fixes: 9b3b8171f7f4 ("dmaengine: sprd: Add Spreadtrum DMA driver") Reported-by: Zhenfang Wang <[email protected]> Tested-by: Zhenfang Wang <[email protected]> Signed-off-by: Baolin Wang <[email protected]> Link: https://lore.kernel.org/r/170dbbc6d5366b6fa974ce2d366652e23a334251.1570609788.git.baolin.wang@linaro.org Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions