diff options
author | Liang He <windhl@126.com> | 2022-07-13 10:12:00 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-07-13 15:48:54 +0300 |
commit | eda26893dabfc6da7a1e1ff5f8628ed9faab3ab9 (patch) | |
tree | c31a51ac120ebcfa6d3363016d97d6859e84bfc5 /tools/perf/scripts/python/stackcollapse.py | |
parent | 73acfba792b06156b7c805162fcd89fdb71646f9 (diff) | |
download | linux-eda26893dabfc6da7a1e1ff5f8628ed9faab3ab9.tar.xz |
ASoc: audio-graph-card2: Fix refcount leak bug in __graph_get_type()
We should call of_node_put() for the reference before its replacement
as it returned by of_get_parent() which has increased the refcount.
Besides, we should also call of_node_put() before return.
Fixes: c8c74939f791 ("ASoC: audio-graph-card2: add Multi CPU/Codec support")
Signed-off-by: Liang He <windhl@126.com>
Link: https://lore.kernel.org/r/20220713071200.366729-1-windhl@126.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions