From: Daeseok Youn Date: Thu, 22 May 2014 00:46:12 +0000 (+0900) Subject: drivers: uio_dmem_genirq: Fix memory leak in uio_dmem_genirq_probe() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~38^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca3c61f358d8e5a4b2732d6aa81ac46f677e69f0;p=pandora-kernel.git drivers: uio_dmem_genirq: Fix memory leak in uio_dmem_genirq_probe() When platform_get_irq() is failed after "priv" allocated, it need to free "priv". But the label of bad0 doesn't try to free about "priv". So this patch changes that lable to "bad1". But "bad1" has pm_runtime_disable() call, this function should be called when uio_register_device() is failed. So it is moved into handling error for uio_register_device(). Signed-off-by: Daeseok Youn Signed-off-by: Hans J. Koch Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed