aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorPeter Hilber <[email protected]>2023-12-18 08:38:39 +0100
committerThomas Gleixner <[email protected]>2024-02-19 12:18:51 +0100
commit84dccadd3e2a3f1a373826ad71e5ced5e76b0c00 (patch)
treee7e33f6eff8e90ac1227e3680c7ac1b128a0e4c9 /lib/test_fortify/write_overflow-strncpy-src.c
parentc92a7eb6c642812fb08851e580973c3b83e0227c (diff)
timekeeping: Fix cross-timestamp interpolation on counter wrap
cycle_between() decides whether get_device_system_crosststamp() will interpolate for older counter readings. cycle_between() yields wrong results for a counter wrap-around where after < before < test, and for the case after < test < before. Fix the comparison logic. Fixes: 2c756feb18d9 ("time: Add history to cross timestamp interface supporting slower devices") Signed-off-by: Peter Hilber <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Acked-by: John Stultz <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions