diff options
author | Mateusz Jończyk <[email protected]> | 2022-02-20 10:04:03 +0100 |
---|---|---|
committer | Alexandre Belloni <[email protected]> | 2022-03-23 19:58:37 +0100 |
commit | 811f5559270f25c34c338d6eaa2ece2544c3d3bd (patch) | |
tree | 1412309dcbdd4f866da1c07d69cd031483740472 /lib/parser.c | |
parent | eb74f47bb6b0c0494d7c90491ee321f3b699f93f (diff) |
rtc: mc146818-lib: fix locking in mc146818_set_time
In mc146818_set_time(), CMOS_READ(RTC_CONTROL) was performed without the
rtc_lock taken, which is required for CMOS accesses. Fix this.
Nothing in kernel modifies RTC_DM_BINARY, so a separate critical section
is allowed here.
Fixes: dcf257e92622 ("rtc: mc146818: Reduce spinlock section in mc146818_set_time()")
Signed-off-by: Mateusz Jończyk <[email protected]>
Cc: Alessandro Zummo <[email protected]>
Cc: Alexandre Belloni <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Signed-off-by: Alexandre Belloni <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/parser.c')
0 files changed, 0 insertions, 0 deletions