aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_in.c
diff options
context:
space:
mode:
authorRiwen Lu <[email protected]>2022-01-06 16:46:09 +0800
committerAlexandre Belloni <[email protected]>2022-01-16 23:50:26 +0100
commitff164ae39b82ee483b24579c8e22a13a8ce5bd04 (patch)
tree47cf679dcb4c03687c7961a0b13c62ec7ee2e860 /net/lapb/lapb_in.c
parent900ed72c8a190e8c0b87cb17abc645b8ec713011 (diff)
rtc: cmos: Evaluate century appropriate
There's limiting the year to 2069. When setting the rtc year to 2070, reading it returns 1970. Evaluate century starting from 19 to count the correct year. $ sudo date -s 20700106 Mon 06 Jan 2070 12:00:00 AM CST $ sudo hwclock -w $ sudo hwclock -r 1970-01-06 12:00:49.604968+08:00 Fixes: 2a4daadd4d3e5071 ("rtc: cmos: ignore bogus century byte") Signed-off-by: Riwen Lu <[email protected]> Acked-by: Eric Wong <[email protected]> Reviewed-by: Mateusz Jończyk <[email protected]> Signed-off-by: Alexandre Belloni <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions