[PATCH v2] gpio/omap: fix possible memory leak in omap2_gpio_dev_init()

Tony Lindgren tony at atomide.com
Fri Sep 7 18:24:17 EDT 2012


* Kevin Hilman <khilman at deeprootsystems.com> [120907 15:07]:
> Wei Yongjun <weiyj.lk at gmail.com> writes:
> 
> > From: Wei Yongjun <yongjun_wei at trendmicro.com.cn>
> >
> > pdata and pdata->regs have been allocated in this function and 
> > should be freed before leaving it, and in the other error handling
> > cases too.
> >
> > spatch with a semantic match is used to found this problem.
> > (http://coccinelle.lip6.fr/)
> >
> > Signed-off-by: Wei Yongjun <yongjun_wei at trendmicro.com.cn>
> 
> Acked-by: Kevin Hilman <khilman at ti.com>
> 
> Tony, can you pick this one up for fixes?

Sure, is fixes-noncritical OK for this one?

Tony



More information about the linux-arm-kernel mailing list