diff options
author | Miaoqian Lin <[email protected]> | 2022-03-08 01:52:22 +0000 |
---|---|---|
committer | Mark Brown <[email protected]> | 2022-03-08 12:27:59 +0000 |
commit | e45ac7831ff3e2934d58cce319c17c8ec763c95c (patch) | |
tree | ea5dc9973fcfe00bcfb49f0ffa08c7aae34c6cbf /tools/perf/scripts/python | |
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 <[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')
0 files changed, 0 insertions, 0 deletions