diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2016-01-12 01:29:29 +0100 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2016-03-31 22:34:07 +0200 |
commit | ec3833ed02ae6ef2a933ece9de7cbab0c64c699e (patch) | |
tree | f8fbd7a547108972415b53cab77755b599422275 /kernel/rcu/tree.h | |
parent | rcu: Remove expedited GP funnel-lock bypass (diff) | |
download | linux-ec3833ed02ae6ef2a933ece9de7cbab0c64c699e.tar.xz linux-ec3833ed02ae6ef2a933ece9de7cbab0c64c699e.zip |
rcu: Force boolean subscript for expedited stall warnings
The cpu_online() function can return values other than 0 and 1, which
can result in subscript overflow when applied to a two-element array.
This commit allows for this behavior by using "!!" on the return value
from cpu_online() when used as a subscript.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcu/tree.h')
0 files changed, 0 insertions, 0 deletions