Skip to content

Commit 8938f75

Browse files
hcodinabroonie
authored andcommitted
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 <[email protected]> Acked-by: Kuninori Morimoto <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 2d7c2f9 commit 8938f75

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sound/soc/generic/simple-card.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,7 @@ static int __simple_for_each_link(struct asoc_simple_priv *priv,
416416

417417
if (ret < 0) {
418418
of_node_put(codec);
419+
of_node_put(plat);
419420
of_node_put(np);
420421
goto error;
421422
}

0 commit comments

Comments
 (0)