]> git.baikalelectronics.ru Git - kernel.git/commit
rtc; pcf2123: fix possible alarm race condition
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 19 Aug 2019 18:26:49 +0000 (20:26 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 20 Aug 2019 19:42:05 +0000 (21:42 +0200)
commit47b449294a25b2fb4baac79bed0d160d168757bc
tree9f6f0779531d445dd2e2933e67d10378b39bbc0f
parent3598fef790cd2a66ac638e99a85115959a2cf085
rtc; pcf2123: fix possible alarm race condition

Clear the flag after disabling the alarm to ensure the alarm doesn't fire
between clearing the flag and disabling the alarm.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20190819182656.29744-2-alexandre.belloni@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-pcf2123.c