diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2021-01-11 13:39:56 +0300 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2021-01-12 23:13:01 +0300 |
commit | e3fab2f3de081e98c50b7b4ace1b040161d95310 (patch) | |
tree | 120f822ecb73dcec0cbea6de1cf0520cce478416 /mm | |
parent | aba428a0c612bb259891307da12e22efd0fab14c (diff) | |
download | linux-e3fab2f3de081e98c50b7b4ace1b040161d95310.tar.xz |
ntp: Fix RTC synchronization on 32-bit platforms
Due to an integer overflow, RTC synchronization now happens every 2s
instead of the intended 11 minutes. Fix this by forcing 64-bit
arithmetic for the sync period calculation.
Annotate the other place which multiplies seconds for consistency as well.
Fixes: c9e6189fb03123a7 ("ntp: Make the RTC synchronization more reliable")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20210111103956.290378-1-geert+renesas@glider.be
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions