]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: rcar: Fix error path for devm_kzalloc() failure
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 12 Jan 2015 10:07:58 +0000 (11:07 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 15 Jan 2015 16:23:25 +0000 (17:23 +0100)
commit2b79955d19800a8f6e97e76b356f52c8088459a1
treeb8d6619af4d4408772684fff7247853afaa46f72
parentf2ec7ad4ab64d34e2aff22a75fc60ad4035de1d7
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 <geert+renesas@glider.be>
Fixes: 2ef7ee1919e9c1e8 ("gpio: rcar: Add minimal runtime PM support")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-rcar.c