diff options
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-03-01 00:50:53 +0300 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-03-17 16:20:50 +0300 |
commit | f18046c50d2bb726538a83dfb035bfa592779e9c (patch) | |
tree | 7ec9f12b2c45b77103ba609e67e2eef2741a0110 /drivers/rtc/rtc-omap.c | |
parent | 561f8281cf90051bc5f11017ac5ebb21eec45ad9 (diff) | |
download | linux-f18046c50d2bb726538a83dfb035bfa592779e9c.tar.xz |
rtc: fix rtc_time64_to_tm for 3477
The current correction for leap years will fail in 3477. 3476-12-31 being
3477-01-00 because this is 366 leap years after 1970 and 3477 isn't a leap
year.
Fix that by looping over until days is positive or zero.
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-omap.c')
0 files changed, 0 insertions, 0 deletions