aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_autoload.c
diff options
context:
space:
mode:
authorCsókás, Bence <[email protected]>2024-06-11 09:24:09 +0200
committerAlexandre Belloni <[email protected]>2024-07-07 00:39:27 +0200
commit68f78c720da4088d254250867126c6ae5b68fa2a (patch)
tree5425be29a73dd50445d0e490cd39cad7c01f10f8 /tools/testing/selftests/bpf/progs/test_autoload.c
parent35a34f09baed51216455740e01bd132cf60c71cf (diff)
rtc: ds1307: Clamp year to valid BCD (0-99) in `set_time()`
`tm_year` may go up to 299 if the device supports the century bit. Therefore, subtracting may not give us a valid 2-digit number, but modulo does. Co-developed-by: Szentendrei, Tamás <[email protected]> Signed-off-by: Szentendrei, Tamás <[email protected]> Signed-off-by: Csókás, Bence <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions