]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rsnd: Fix an error handling path in 'rsnd_node_count()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 18 Oct 2021 19:44:16 +0000 (21:44 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 29 Oct 2021 17:55:25 +0000 (18:55 +0100)
commite2bb90292b890665fee5c476e4feb993a14dd07f
treef7c770e4f69ceaaa4be8368bdb169ea7585da1bb
parentd8fb1bde3199ab15a3e763a51531d3830efb1037
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: 7d3d5159b454 ("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>
sound/soc/sh/rcar/core.c