From: Geert Uytterhoeven Date: Mon, 12 Jan 2015 10:07:58 +0000 (+0100) Subject: gpio: rcar: Fix error path for devm_kzalloc() failure X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~124^2~38 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d82bf3419c103dbb730e7834186fc5d577b9da1;p=pandora-kernel.git gpio: rcar: Fix error path for devm_kzalloc() failure If the call to devm_kzalloc() fails, nothing must be cleant up. This was missed before because gpio_rcar_probe() had a "return" statement after the first "goto err0". Signed-off-by: Geert Uytterhoeven Fixes: df0c6c80232f2ad4 ("gpio: rcar: Add minimal runtime PM support") Signed-off-by: Linus Walleij --- Reading git-diff-tree failed