Commit 681a5a4c authored by Dan Carpenter's avatar Dan Carpenter Committed by Zheng Zengkai
Browse files

rtc: rv3032: fix error handling in rv3032_clkout_set_rate()

stable inclusion
from stable-5.10.80
commit 038dfd67d375b10c9dc6d67dd4db3f1e1e45ce5c
bugzilla: 185821 https://gitee.com/openeuler/kernel/issues/I4L7CG

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=038dfd67d375b10c9dc6d67dd4db3f1e1e45ce5c



--------------------------------

[ Upstream commit c3336b8a ]

Do not call rv3032_exit_eerd() if the enter function fails but don't
forget to call the exit when the enter succeeds.

Fixes: 2eeaa532 ("rtc: rv3032: Add a driver for Microcrystal RV-3032")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20211012101028.GT2083@kadam


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Reviewed-by: default avatarWeilong Chen <chenweilong@huawei.com>
Acked-by: default avatarWeilong Chen <chenweilong@huawei.com>

Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent c85337af
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment