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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 May 2018 05:52:29 +0000 (07:52 +0200)
commit5db7e1bb6a132625d7c7f9d5b259d26c959388e1
treeeb4577f360f803680aa03d35045cbd3e4133a471
parentfc7bcbb940278a9fa81c6e5cbd4402a275cd131c
watchdog: davinci_wdt: fix error handling in davinci_wdt_probe()

[ Upstream commit d66e53649c18377edc08d48901e658e4fd491d46 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/watchdog/davinci_wdt.c