aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorMiaoqian Lin <[email protected]>2022-03-08 01:52:22 +0000
committerMark Brown <[email protected]>2022-03-08 12:27:59 +0000
commite45ac7831ff3e2934d58cce319c17c8ec763c95c (patch)
treeea5dc9973fcfe00bcfb49f0ffa08c7aae34c6cbf /tools/perf/scripts/python/exported-sql-viewer.py
parent5575f7f49134c7386a684335c9007737c606d3b5 (diff)
ASoC: mediatek: mt8192-mt6359: Fix error handling in mt8192_mt6359_dev_probe
The device_node pointer is returned by of_parse_phandle() with refcount incremented. We should use of_node_put() on it when done. This function only calls of_node_put() in the regular path. And it will cause refcount leak in error paths. Fix this by calling of_node_put() in error handling too. Fixes: 4e28491a7a19 ("ASoC: mediatek: mt8192-mt6359: fix device_node leak") Signed-off-by: Miaoqian Lin <[email protected]> Reviewed-by: Tzung-Bi Shih <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions