diff options
author | Takashi Iwai <tiwai@suse.de> | 2019-02-19 10:46:48 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-02-20 07:12:33 -0500 |
commit | 44662f90cda7ce0b65e77a7f1eefe45fb9053a4e (patch) | |
tree | 3aa38f33ba94520402e6edb9517138a8ae5adff4 /sound/soc/generic | |
parent | 2757970f6d0d0a112247600b23d38c0c728ceeb3 (diff) |
ASoC: simple-card: Fix missing of_node_put() at simple_dai_link_of()
We forgot to unreference the platform node object obtained from
of_get_child_by_name(). This leads to the unbalance of node
refcount.
Fixes: e0ae225b7e96 ("ASoC: simple-card: support platform in dts parse")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/generic')
-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 dc18c4492955..092963e90e1e 100644 --- a/sound/soc/generic/simple-card.c +++ b/sound/soc/generic/simple-card.c | |||
@@ -421,6 +421,7 @@ static int simple_dai_link_of(struct simple_priv *priv, | |||
421 | asoc_simple_card_canonicalize_platform(dai_link); | 421 | asoc_simple_card_canonicalize_platform(dai_link); |
422 | 422 | ||
423 | dai_link_of_err: | 423 | dai_link_of_err: |
424 | of_node_put(plat); | ||
424 | of_node_put(node); | 425 | of_node_put(node); |
425 | 426 | ||
426 | return ret; | 427 | return ret; |