lkml.org 
[lkml]   [2014]   [Aug]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 1/2] ASoC: simple-card: Fix bug of forgetting decrement DT node's refcount
Date
We shouldn't forget decrement the last DT node when the
of_get_next_child() has finished searching.

Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com>
---
sound/soc/generic/simple-card.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple-card.c
index 21b0ea2..9675bf7 100644
--- a/sound/soc/generic/simple-card.c
+++ b/sound/soc/generic/simple-card.c
@@ -344,6 +344,7 @@ static int asoc_simple_card_parse_of(struct device_node *node,
return ret;
}
}
+ of_node_put(np);
} else {
ret = simple_card_dai_link_of(node, dev, dai_link, dai_props,
true);
--
1.8.5


\
 
 \ /
  Last update: 2014-08-29 11:41    [W:0.022 / U:2.648 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site