diff options
author | Yury Norov | 2022-09-19 14:05:53 -0700 |
---|---|---|
committer | Yury Norov | 2022-10-01 10:22:58 -0700 |
commit | 78e5a3399421ad79fc024e6d78e2deb7809d26af (patch) | |
tree | 300d0095c49837a9b1e74417dd58d75660c46730 /lib | |
parent | 8173aa26260e6d0153db0c7135d41a4da612da5b (diff) |
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')
0 files changed, 0 insertions, 0 deletions