linux-sg2042/sound/soc/generic
Wang Yufen 8ab2d12c72
ASoC: audio-graph-card: fix refcount leak of cpu_ep in __graph_for_each_link()
The of_get_next_child() returns a node with refcount incremented, and
decrements the refcount of prev. So in the error path of the while loop,
of_node_put() needs be called for cpu_ep.

Fixes: fce9b90c1a ("ASoC: audio-graph-card: cleanup DAI link loop method - step2")
Signed-off-by: Wang Yufen <wangyufen@huawei.com>
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/1670228127-13835-1-git-send-email-wangyufen@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2022-12-07 14:19:12 +00:00
..
Kconfig ASoC: add Audio Graph Card2 Custom Sample 2021-10-15 16:10:43 +01:00
Makefile ASoC: add Audio Graph Card2 Custom Sample 2021-10-15 16:10:43 +01:00
audio-graph-card.c ASoC: audio-graph-card: fix refcount leak of cpu_ep in __graph_for_each_link() 2022-12-07 14:19:12 +00:00
audio-graph-card2-custom-sample.c ASoC: add Audio Graph Card2 Custom Sample 2021-10-15 16:10:43 +01:00
audio-graph-card2-custom-sample.dtsi ASoC: audio-graph-card2-custom-sample.dtsi: add convert-rate for DPCM (MIXer) 2022-11-07 13:58:06 +00:00
audio-graph-card2.c ASoC: audio-graph-card2: remove Experimental announce 2022-11-11 17:26:52 +00:00
simple-card-utils.c ASoC: simple-card-utils: remove asoc_simple_convert_fixup() 2022-11-07 13:58:05 +00:00
simple-card.c ASoC: simple-card: Fix up checks for HW param fixups 2022-10-19 13:39:34 +01:00
test-component.c ASoC: test-component: Remove now redundant non_legacy_dai_naming flag 2022-06-27 13:16:53 +01:00