aboutsummaryrefslogtreecommitdiffstats
path: root/lib/find_bit.c
diff options
context:
space:
mode:
authorYury Norov <[email protected]>2022-09-19 21:05:53 +0000
committerYury Norov <[email protected]>2022-10-01 17:22:58 +0000
commit78e5a3399421ad79fc024e6d78e2deb7809d26af (patch)
tree300d0095c49837a9b1e74417dd58d75660c46730 /lib/find_bit.c
parentlib/bitmap: add tests for for_each() loops (diff)
downloadkernel-78e5a3399421ad79fc024e6d78e2deb7809d26af.tar.gz
kernel-78e5a3399421ad79fc024e6d78e2deb7809d26af.zip
cpumask: fix checking valid cpu range
The range of valid CPUs is [0, nr_cpu_ids). Some cpumask functions are passed with a shifted CPU index, and for them, the valid range is [-1, nr_cpu_ids-1). Currently for those functions, we check the index against [-1, nr_cpu_ids), which is wrong. Signed-off-by: Yury Norov <[email protected]>
Diffstat (limited to 'lib/find_bit.c')
0 files changed, 0 insertions, 0 deletions