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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Mar 2018 07:42:49 +0000 (08:42 +0100)
commitf113f794410a5c88f8cadf41b3f2499cc859da24
treeaae1111592b01152f69aa903512495b6e86d7943
parent31a0f45021086f57bc48c5572c26fde44fe92ee0
rtc: brcmstb-waketimer: fix error handling in brcmstb_waketmr_probe()

[ Upstream commit f2eef045de9defbc6fc6b72b17f0941cbe26c81d ]

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