Re: [PATCH] rtc-mc146818-lib: fix locking in mc146818_set_time

From: Alexandre Belloni
Date: Tue Mar 08 2022 - 11:39:00 EST


On Sun, 20 Feb 2022 10:04:03 +0100, Mateusz Jończyk wrote:
> 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.
>
>
> [...]

Applied, thanks!

[1/1] rtc-mc146818-lib: fix locking in mc146818_set_time
commit: c63cdb340a7e0bd3734f9f8e27f082a054b45887

Best regards,
--
Alexandre Belloni <alexandre.belloni@xxxxxxxxxxx>