aboutsummaryrefslogtreecommitdiffstats
path: root/lib/find_bit.c
diff options
context:
space:
mode:
authorYury Norov <yury.norov@gmail.com>2022-09-19 14:05:53 -0700
committerYury Norov <yury.norov@gmail.com>2022-10-01 10:22:58 -0700
commit78e5a3399421ad79fc024e6d78e2deb7809d26af (patch)
tree300d0095c49837a9b1e74417dd58d75660c46730 /lib/find_bit.c
parentlib/bitmap: add tests for for_each() loops (diff)
downloadlinux-dev-78e5a3399421ad79fc024e6d78e2deb7809d26af.tar.xz
linux-dev-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 <yury.norov@gmail.com>
Diffstat (limited to 'lib/find_bit.c')
0 files changed, 0 insertions, 0 deletions