[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <11d26ed010ad4cc9b90f44bff56340c3@BY2PR0301MB0613.namprd03.prod.outlook.com>
Date: Mon, 1 Sep 2014 06:52:26 +0000
From: "Li.Xiubo@...escale.com" <Li.Xiubo@...escale.com>
To: Jean-Francois Moine <moinejf@...e.fr>
CC: "broonie@...nel.org" <broonie@...nel.org>,
"lgirdwood@...il.com" <lgirdwood@...il.com>,
"perex@...ex.cz" <perex@...ex.cz>, "tiwai@...e.de" <tiwai@...e.de>,
"kuninori.morimoto.gx@...esas.com" <kuninori.morimoto.gx@...esas.com>,
"jsarha@...com" <jsarha@...com>,
"alsa-devel@...a-project.org" <alsa-devel@...a-project.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: RE: [PATCHv2 1/2] ASoC: simple-card: Fix bug of forgetting decrement
DT node's refcount
> > Signed-off-by: Xiubo Li <Li.Xiubo@...escale.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 fd8b045..9e170fe 100644
> > --- a/sound/soc/generic/simple-card.c
> > +++ b/sound/soc/generic/simple-card.c
> > @@ -360,6 +360,7 @@ static int asoc_simple_card_parse_of(struct device_node
> *node,
> > }
> > i++;
> > }
> > + of_node_put(np);
> > } else {
> > ret = asoc_simple_card_dai_link_of(node, dev,
> > dai_link, dai_props, true);
>
> No. np is NULL at end of loop.
>
Well, yes, you are right.
Thanks,
BRs
Xiubo
Powered by blists - more mailing lists