Re: [PATCH] watchdog: sprd_wdt: Fix error handling in sprd_wdt_enable()

2018-03-08 Thread Guenter Roeck
On Fri, Mar 09, 2018 at 12:21:48AM +0300, Alexey Khoroshilov wrote: > 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 Reviewed-by: Guenter Roeck > --- >

[PATCH] watchdog: sprd_wdt: Fix error handling in sprd_wdt_enable()

2018-03-08 Thread Alexey Khoroshilov
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 --- drivers/watchdog/sprd_wdt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/watchd