]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: davinci_wdt: fix error handling in davinci_wdt_probe()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 23 Mar 2018 21:36:46 +0000 (00:36 +0300)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Mon, 26 Mar 2018 18:47:56 +0000 (20:47 +0200)
commit2e57f8fe5d9e57c0a433dde5edeccf46a132e445
tree026005ef84b7f939c7256811a937b7c4ee54a317
parent942ed027ebe34a8595ed670c85416b341a0d23a5
watchdog: davinci_wdt: fix error handling in davinci_wdt_probe()

clk_disable_unprepare() was added to one error path,
but there is another one. The patch makes sure clk is
disabled at the both of them.

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