aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorLiang He <[email protected]>2022-07-21 21:52:16 +0800
committerBjorn Andersson <[email protected]>2022-08-18 14:13:46 -0500
commitaf8f6f39b8afd772fda4f8e61823ef8c021bf382 (patch)
tree2ab489338bd4823ff5721f585532ba498de4447a /tools/perf/scripts/python/stackcollapse.py
parent14af4ce084b5fb86f7a01167f54ec8517966b804 (diff)
soc: qcom: smsm: Fix refcount leak bugs in qcom_smsm_probe()
There are two refcount leak bugs in qcom_smsm_probe(): (1) The 'local_node' is escaped out from for_each_child_of_node() as the break of iteration, we should call of_node_put() for it in error path or when it is not used anymore. (2) The 'node' is escaped out from for_each_available_child_of_node() as the 'goto', we should call of_node_put() for it in goto target. Fixes: c97c4090ff72 ("soc: qcom: smsm: Add driver for Qualcomm SMSM") Signed-off-by: Liang He <[email protected]> Signed-off-by: Bjorn Andersson <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions