[PATCH v2] gpio/omap: fix possible memory leak in omap2_gpio_dev_init()
khilman at deeprootsystems.com
Fri Sep 7 18:06:52 EDT 2012
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.
> 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?
More information about the linux-arm-kernel