diff options
author | Miaoqian Lin <[email protected]> | 2022-03-16 08:46:15 +0000 |
---|---|---|
committer | Mark Brown <[email protected]> | 2022-03-16 16:39:25 +0000 |
commit | c4b7174fe5bb875a09a78674a14a1589d1a672f3 (patch) | |
tree | 196aa95a421276b3b507da5524af8b12d63b3a07 /tools/perf/scripts/python/stat-cpi.py | |
parent | abed17fdf92e4b3bfe336f7872270e0924cc4463 (diff) |
ASoC: mediatek: mt8195: Fix error handling in mt8195_mt6359_rt1019_rt5682_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 path.
Fixes: 082482a50227 ("ASoC: mediatek: mt8195: release device_node after snd_soc_register_card")
Signed-off-by: Miaoqian Lin <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions