]> www.infradead.org Git - users/jedix/linux-maple.git/commit
watchdog: asm9260_wdt: fix error handling in asm9260_wdt_probe()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Sat, 10 Feb 2018 10:17:27 +0000 (13:17 +0300)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sat, 3 Mar 2018 16:04:16 +0000 (17:04 +0100)
commit3c829f47e33eb0398a9a14e357a05199a7be0277
tree7a388f94da9858595e94eebe903ac6140523d424
parent8d039d4d3d387d15e6c9bb7a406c6689efdb8540
watchdog: asm9260_wdt: fix error handling in asm9260_wdt_probe()

If devm_reset_control_get_exclusive() fails, asm9260_wdt_probe()
returns immediately. But clks has been already enabled at that point,
so it is required to disable them or to move the code around.

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

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/asm9260_wdt.c