diff options
author | Paul E. McKenney <[email protected]> | 2024-08-02 08:46:15 -0700 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2024-08-02 18:29:28 +0200 |
commit | f2655ac2c06a15558e51ed6529de280e1553c86e (patch) | |
tree | cb90f7c658526d5a588582375def5560b7b197dc /rust | |
parent | 6881e75237a84093d0986f56223db3724619f26e (diff) |
clocksource: Fix brown-bag boolean thinko in cs_watchdog_read()
The current "nretries > 1 || nretries >= max_retries" check in
cs_watchdog_read() will always evaluate to true, and thus pr_warn(), if
nretries is greater than 1. The intent is instead to never warn on the
first try, but otherwise warn if the successful retry was the last retry.
Therefore, change that "||" to "&&".
Fixes: db3a34e17433 ("clocksource: Retry clock read if long delays detected")
Reported-by: Borislav Petkov <[email protected]>
Signed-off-by: Paul E. McKenney <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Cc: [email protected]
Link: https://lore.kernel.org/all/[email protected]
Diffstat (limited to 'rust')
0 files changed, 0 insertions, 0 deletions