]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: rv8803: fix missing unlock on error in rv8803_set_time()
authorYang Yingliang <yangyingliang@huawei.com>
Mon, 27 Jun 2022 08:08:22 +0000 (16:08 +0800)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 26 Jul 2022 09:29:05 +0000 (11:29 +0200)
commita80983f2711357ffc7cd59727a8772d5bb6c87c3
treeb27317aab773bff9de2f6ef139234e97279de7e6
parentdebace320615b52a115ede0bed03b94698045aef
rtc: rv8803: fix missing unlock on error in rv8803_set_time()

Add the missing unlock before return from function rv8803_set_time()
in the error handling case.

Fixes: 1ed84f9d694e ("rtc: rv8803: initialize registers on post-probe voltage loss")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Reviewed-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20220627080822.3881072-1-yangyingliang@huawei.com
drivers/rtc/rtc-rv8803.c