diff options
author | Qiushi Wu <wu000273@umn.edu> | 2020-05-03 13:22:35 -0500 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2020-05-11 16:21:50 +0200 |
commit | 8816cd726a4fee197af2d851cbe25991ae19ea14 (patch) | |
tree | 84e2044b3661541ee8b1e38eb173f7b88de5bb5e /drivers/spi/spi-mtk-nor.c | |
parent | 32271efded6ca4e92d8f0647dce7fbd94f684a16 (diff) |
rtc: mc13xxx: fix a double-unlock issue
In function mc13xxx_rtc_probe, the mc13xxx_unlock() is called
before rtc_register_device(). But in the error path of
rtc_register_device(), the mc13xxx_unlock() is called again,
which causes a double-unlock problem. Thus add a call of the
function “mc13xxx_lock” in an if branch for the completion
of the exception handling.
Fixes: e4ae7023e182a ("rtc: mc13xxx: set range")
Signed-off-by: Qiushi Wu <wu000273@umn.edu>
Link: https://lore.kernel.org/r/20200503182235.1652-1-wu000273@umn.edu
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/spi/spi-mtk-nor.c')
0 files changed, 0 insertions, 0 deletions