From: Xiubo Li <Li.Xiubo@freescale.com>
To: broonie@kernel.org, moinejf@free.fr,
kuninori.morimoto.gx@renesas.com, jsarha@ti.com,
alsa-devel@alsa-project.org
Cc: linux-kernel@vger.kernel.org, Xiubo Li <Li.Xiubo@freescale.com>
Subject: [PATCH 1/2] ASoC: simple-card: Fix bug of forgetting decrement DT node's refcount
Date: Fri, 29 Aug 2014 17:19:32 +0800 [thread overview]
Message-ID: <1409303973-1084-2-git-send-email-Li.Xiubo@freescale.com> (raw)
In-Reply-To: <1409303973-1084-1-git-send-email-Li.Xiubo@freescale.com>
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
next prev parent reply other threads:[~2014-08-29 9:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-29 9:19 [PATCH 0/2] ASoC: simple-card: Fix bug about DT node's refcount Xiubo Li
2014-08-29 9:19 ` Xiubo Li [this message]
2014-08-29 9:19 ` [PATCH 2/2] ASoC: simple-card: Fix bug of wrong decrement " Xiubo Li
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1409303973-1084-2-git-send-email-Li.Xiubo@freescale.com \
--to=li.xiubo@freescale.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=jsarha@ti.com \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=linux-kernel@vger.kernel.org \
--cc=moinejf@free.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).