diff options
author | 2019-02-19 16:46:49 +0100 | |
---|---|---|
committer | 2019-02-20 12:12:37 +0000 | |
commit | 0b9c9ed6dd3b61b1d3ef1638786a7216006f67c5 (patch) | |
tree | b7d7b6fbc425ed891d940edf38825aa36cafa8c2 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ASoC: simple-card: Fix missing of_node_put() at simple_dai_link_of() (diff) | |
download | wireguard-linux-0b9c9ed6dd3b61b1d3ef1638786a7216006f67c5.tar.xz wireguard-linux-0b9c9ed6dd3b61b1d3ef1638786a7216006f67c5.zip |
ASoC: simple-card: Fix of-node refcount unbalance in DAI-link parser
The function simple_for_each_link() has a few missing places that
forgot unrefereing of-nodes after the use. The main do-while loop
may abort when loop=0, and this leaves the node object still
referenced. A similar leak is found in the error handling of NULL
codec that aborts the loop as well. Last but not least, the inner
for_each_child_of_node() loop may abort in the middle, and this leaks
the refcount of the iterator node.
This patch addresses these missing refcount issues.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions