Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a618cf48 authored by Alexey Khoroshilov's avatar Alexey Khoroshilov Committed by Linus Walleij
Browse files

gpio: dwapb: Fix error handling in dwapb_gpio_probe()



If dwapb_gpio_add_port() fails in dwapb_gpio_probe(),
gpio->clk is left undisabled.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: default avatarAlexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 78d3a92e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -728,6 +728,7 @@ static int dwapb_gpio_probe(struct platform_device *pdev)
out_unregister:
	dwapb_gpio_unregister(gpio);
	dwapb_irq_teardown(gpio);
	clk_disable_unprepare(gpio->clk);

	return err;
}