[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20120612115033.GG25534@shlinux2.ap.freescale.net>
Date: Tue, 12 Jun 2012 19:50:34 +0800
From: Dong Aisheng <aisheng.dong@...escale.com>
To: Linus Walleij <linus.walleij@...aro.org>
CC: Devendra Naga <devendra.aaru@...il.com>,
Dong Aisheng <B29396@...escale.com>,
Shawn Guo <shawn.guo@...aro.org>,
<linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 1/2] pinctrl: pinctrl-mxs: Take care of frees if the
kzalloc fails
On Tue, Jun 12, 2012 at 01:31:25PM +0200, Linus Walleij wrote:
> On Sat, Jun 9, 2012 at 2:01 PM, Devendra Naga <devendra.aaru@...il.com> wrote:
>
> > if there is no purecfg , the group pointer is allocated using kzalloc and if it
> > fails to allocate, we wont free the new_map,
> >
> > if config is true, we call kmemdup and if it
> > fails to do so we wont free the allocated group if there is no purecfg.
> >
> > fix this by doing the frees of new_map pointer and group pointers.
> >
> > Signed-off-by: Devendra Naga <devendra.aaru@...il.com>
>
> Obviously correct so applied.
>
> Dong, Shawn: any ACKs?
>
Acked-by: Dong Aisheng <dong.aisheng@...aro.org>
Regards
Dong Aisheng
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists