diff options
| author | Paul E. McKenney <[email protected]> | 2024-08-02 15:46:15 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2024-08-02 16:29:28 +0000 |
| commit | f2655ac2c06a15558e51ed6529de280e1553c86e (patch) | |
| tree | cb90f7c658526d5a588582375def5560b7b197dc /scripts/gcc-plugins/randomize_layout_plugin.c | |
| parent | tick/broadcast: Move per CPU pointer access into the atomic section (diff) | |
| download | kernel-f2655ac2c06a15558e51ed6529de280e1553c86e.tar.gz kernel-f2655ac2c06a15558e51ed6529de280e1553c86e.zip | |
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 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions
