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

From: [email-masked] (Kevin Hilman)
Date: Fri, 07 Sep 2012 15:06:52 -0700

Wei Yongjun <[email-masked]> writes:

> From: Wei Yongjun <[email-masked]>
>
> 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 <[email-masked]>

Acked-by: Kevin Hilman <[email-masked]>

Tony, can you pick this one up for fixes?

Thanks,

Kevin