aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorNishka Dasgupta <[email protected]>2019-07-12 06:49:47 +0000
committerDmitry Torokhov <[email protected]>2019-07-12 06:56:05 +0000
commitcc95527cceb3d1aaadd5cc1cf601d466af2e53f2 (patch)
tree92877ec29739e0ff5d7ca0abd6b45da96ae8afa3 /tools/perf/scripts/python/stackcollapse.py
parentInput: sun4i-lradc-keys - add of_node_put() before return (diff)
downloadkernel-cc95527cceb3d1aaadd5cc1cf601d466af2e53f2.tar.gz
kernel-cc95527cceb3d1aaadd5cc1cf601d466af2e53f2.zip
Input: mtk-pmic-keys - add of_node_put() before return
Each iteration of for_each_child_of_node puts the previous node, but in the case of a return from the middle of the loop, there is no put, thus causing a memory leak. Hence add an of_node_put before the return in three places. Issue found with Coccinelle. Signed-off-by: Nishka Dasgupta <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions