]> www.infradead.org Git - users/hch/misc.git/commit
watchdog: sprd_wdt: Fix error handling in sprd_wdt_enable()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Thu, 8 Mar 2018 21:21:48 +0000 (00:21 +0300)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Tue, 13 Mar 2018 18:14:18 +0000 (19:14 +0100)
commit3c578cd4bc52b6e65d65be1abad9a8aa489ec207
treea7f1ce2eb944527c5bb8962a977f2b46caed3ea8
parentd2fc8db691bf3197d43b2afb553311a9bf257bff
watchdog: sprd_wdt: Fix error handling in sprd_wdt_enable()

If clk_prepare_enable(wdt->rtc_enable) fails,
wdt->enable clock is left enabled.

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/sprd_wdt.c