diff options
author | Herve Codina <herve.codina@bootlin.com> | 2023-05-23 18:12:22 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-05-26 18:35:26 +0300 |
commit | 8938f75a5e35c597a647c28984a0304da7a33d63 (patch) | |
tree | 83a7c25858f260a3c3ecd97fe70f6768a4114374 /sound/soc/generic/simple-card.c | |
parent | 2d7c2f9272de6347a9cec0fc07708913692c0ae3 (diff) | |
download | linux-8938f75a5e35c597a647c28984a0304da7a33d63.tar.xz |
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: 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>
Diffstat (limited to 'sound/soc/generic/simple-card.c')
-rw-r--r-- | sound/soc/generic/simple-card.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple-card.c index 6f044cc8357e..5a5e4ecd0f61 100644 --- 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; } |