WSL2-Linux-Kernel/sound/soc/sh/rcar
Christophe JAILLET 173632358f
ASoC: rsnd: Fix an error handling path in 'rsnd_node_count()'
If we return before the end of the 'for_each_child_of_node()' iterator, the
reference taken on 'np' must be released.

Add the missing 'of_node_put()' call.

Fixes: c413983eb6 ("ASoC: rsnd: adjust disabled module")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/4c0e893cbfa21dc76c1ede0b6f4f8cff42209299.1634586167.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Mark Brown <broonie@kernel.org>
2021-10-29 18:55:25 +01:00
..
Makefile ASoC: rsnd: add debugfs support 2021-05-27 11:15:31 +01:00
adg.c ASoC: rsnd: adg: clearly handle clock error / NULL case 2021-08-20 13:07:26 +01:00
cmd.c ASoC: rsnd: add debugfs support 2021-05-27 11:15:31 +01:00
core.c ASoC: rsnd: Fix an error handling path in 'rsnd_node_count()' 2021-10-29 18:55:25 +01:00
ctu.c ASoC: rsnd: add debugfs support 2021-05-27 11:15:31 +01:00
debugfs.c ASoC: rsnd: add debugfs support 2021-05-27 11:15:31 +01:00
dma.c ASoC: sh: rcar: dma: : use proper DMAENGINE API for termination 2021-07-11 23:48:38 +01:00
dvc.c ASoC: rsnd: tidyup rsnd_dma_request_channel() 2021-06-01 14:04:14 +01:00
gen.c ASoC: rsnd: add debugfs support 2021-05-27 11:15:31 +01:00
mix.c ASoC: rsnd: add debugfs support 2021-05-27 11:15:31 +01:00
rsnd.h ASoC: rsnd: tidyup __rsnd_mod_xxx macro comments 2021-06-03 13:56:42 +01:00
src.c ASoC: rsnd: adjust disabled module 2021-06-01 14:04:15 +01:00
ssi.c ASoC: rsnd: make some arrays static const, makes object smaller 2021-08-02 12:14:05 +01:00
ssiu.c ASoC: rsnd: check for zero node count 2021-06-03 13:59:59 +01:00