Skip to content

Commit 453fa43

Browse files
committed
Merge tag 'rtc-5.15-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux
Pull RTC fix from Alexandre Belloni: "Fix a locking issue in the cmos rtc driver" * tag 'rtc-5.15-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux: rtc: cmos: Disable irq around direct invocation of cmos_interrupt()
2 parents b7213ff + 13be2ef commit 453fa43

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/rtc/rtc-cmos.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,7 +1047,9 @@ static void cmos_check_wkalrm(struct device *dev)
10471047
* ACK the rtc irq here
10481048
*/
10491049
if (t_now >= cmos->alarm_expires && cmos_use_acpi_alarm()) {
1050+
local_irq_disable();
10501051
cmos_interrupt(0, (void *)cmos->rtc);
1052+
local_irq_enable();
10511053
return;
10521054
}
10531055

0 commit comments

Comments
 (0)