summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorHerve Codina <herve.codina@bootlin.com>2023-05-23 17:12:22 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-06-28 10:28:15 +0200
commitfa08753c2d049442cb4c990759befd3e4effdc0b (patch)
tree6c8f8dc2b38e52e9791864b2151d29bb23089cd3 /sound
parent9138ed7e2b439b9f8f393194861e5b7967b50716 (diff)
downloadlinux-stable-fa08753c2d049442cb4c990759befd3e4effdc0b.tar.gz
linux-stable-fa08753c2d049442cb4c990759befd3e4effdc0b.tar.bz2
linux-stable-fa08753c2d049442cb4c990759befd3e4effdc0b.zip
ASoC: simple-card: Add missing of_node_put() in case of error
[ Upstream commit 8938f75a5e35c597a647c28984a0304da7a33d63 ] In the error path, a of_node_put() for platform is missing. Just add it. Signed-off-by: Herve Codina <herve.codina@bootlin.com> Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Link: https://lore.kernel.org/r/20230523151223.109551-9-herve.codina@bootlin.com Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/generic/simple-card.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple-card.c
index d916ec69c24f..ac97e8b7978c 100644
--- a/sound/soc/generic/simple-card.c
+++ b/sound/soc/generic/simple-card.c
@@ -410,6 +410,7 @@ static int simple_for_each_link(struct asoc_simple_priv *priv,
if (ret < 0) {
of_node_put(codec);
+ of_node_put(plat);
of_node_put(np);
goto error;
}