summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2024-08-02 08:46:15 -0700
committerThomas Gleixner <tglx@linutronix.de>2024-08-02 18:29:28 +0200
commitf2655ac2c06a15558e51ed6529de280e1553c86e (patch)
treecb90f7c658526d5a588582375def5560b7b197dc /arch
parent6881e75237a84093d0986f56223db3724619f26e (diff)
downloadlwn-f2655ac2c06a15558e51ed6529de280e1553c86e.tar.gz
lwn-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 <bp@alien8.de> Signed-off-by: Paul E. McKenney <paulmck@kernel.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: stable@vger.kernel.org Link: https://lore.kernel.org/all/20240802154618.4149953-2-paulmck@kernel.org
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions