Commit 8938f75a authored by Herve Codina's avatar Herve Codina Committed by Mark Brown

ASoC: simple-card: Add missing of_node_put() in case of error

In the error path, a of_node_put() for platform is missing.
Just add it.
Signed-off-by: default avatarHerve Codina <herve.codina@bootlin.com>
Acked-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/20230523151223.109551-9-herve.codina@bootlin.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 2d7c2f92
...@@ -416,6 +416,7 @@ static int __simple_for_each_link(struct asoc_simple_priv *priv, ...@@ -416,6 +416,7 @@ static int __simple_for_each_link(struct asoc_simple_priv *priv,
if (ret < 0) { if (ret < 0) {
of_node_put(codec); of_node_put(codec);
of_node_put(plat);
of_node_put(np); of_node_put(np);
goto error; goto error;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment