]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Nov 2021 10:04:31 +0000 (11:04 +0100)
commitcceb856eb7f31686164448922c0bb68a23229c4a
treea2b8f4797cba10472bc31c24faf60059c3fe87a0
parent5e0210787cfa4b4422c2987a4c99e603f0f97f5b
ASoC: rsnd: Fix an error handling path in 'rsnd_node_count()'

[ Upstream commit 173632358fde7a567f28e07c4549b959ee857986 ]

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: c413983eb66a ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/sh/rcar/core.c