diff options
author | Miaoqian Lin <linmq006@gmail.com> | 2022-03-08 01:52:22 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-03-08 12:27:59 +0000 |
commit | e45ac7831ff3e2934d58cce319c17c8ec763c95c (patch) | |
tree | ea5dc9973fcfe00bcfb49f0ffa08c7aae34c6cbf /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 5575f7f49134c7386a684335c9007737c606d3b5 (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 <linmq006@gmail.com>
Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org>
Link: https://lore.kernel.org/r/20220308015224.23585-1-linmq006@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions