projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d7c2f9
)
ASoC: simple-card: Add missing of_node_put() in case of error
author
Herve Codina
<herve.codina@bootlin.com>
Tue, 23 May 2023 15:12:22 +0000
(17:12 +0200)
committer
Mark Brown
<broonie@kernel.org>
Fri, 26 May 2023 15:35:26 +0000
(16:35 +0100)
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>
sound/soc/generic/simple-card.c
patch
|
blob
|
history
diff --git
a/sound/soc/generic/simple-card.c
b/sound/soc/generic/simple-card.c
index 6f044cc8357ea5bc5e323134fd85e7f09313f7b9..5a5e4ecd0f61c37cf5d795cde200d3c8faa4a9e2 100644
(file)
--- a/
sound/soc/generic/simple-card.c
+++ b/
sound/soc/generic/simple-card.c
@@
-416,6
+416,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;
}