rtc: brcmstb-waketimer: fix error handling in brcmstb_waketmr_probe()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 17 Nov 2017 21:15:58 +0000 (00:15 +0300)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Wed, 29 Nov 2017 21:11:13 +0000 (22:11 +0100)
commitf2eef045de9defbc6fc6b72b17f0941cbe26c81d
treeb4281bfd081a6aede1d53e3267ae796f75bf2b66
parent4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323
rtc: brcmstb-waketimer: fix error handling in brcmstb_waketmr_probe()

brcmstb_waketmr_probe() does not disable timer->clk on error paths.

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

Fixes: c4f07ecee22e ("rtc: brcmstb-waketimer: Add Broadcom STB wake-timer")
Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-brcmstb-waketimer.c