From: Wei Yongjun Date: Mon, 3 Sep 2012 12:42:27 +0000 (+0800) Subject: gpio/omap: fix possible memory leak in omap2_gpio_dev_init() X-Git-Tag: omap-fixes-noncritical-for-v3.7~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e40b1c1cc5ae9b949f96d40356afd2a31477365;p=pandora-kernel.git gpio/omap: fix possible memory leak in omap2_gpio_dev_init() 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 Acked-by: Kevin Hilman Signed-off-by: Tony Lindgren --- Reading git-diff-tree failed