diff options
author | Paul E. McKenney <[email protected]> | 2023-06-07 11:59:49 -0700 |
---|---|---|
committer | Paul E. McKenney <[email protected]> | 2023-07-14 15:17:09 -0700 |
commit | e40806e9bcf8aaa86dbf0d484e7cf3cfa09cb86c (patch) | |
tree | 3fa226db7247505724ef7d64de6c1684b37aa8f7 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5 (diff) |
clocksource: Handle negative skews in "skew is too large" messages
The nanosecond-to-millisecond skew computation uses unsigned arithmetic,
which produces user-unfriendly large positive numbers for negative skews.
Therefore, use signed arithmetic for this computation in order to preserve
the negativity.
Reported-by: Chris Bainbridge <[email protected]>
Reported-by: Feng Tang <[email protected]>
Fixes: dd029269947a ("clocksource: Improve "skew is too large" messages")
Reviewed-by: Feng Tang <[email protected]>
Tested-by: Chris Bainbridge <[email protected]>
Signed-off-by: Paul E. McKenney <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions