Skip to content
Snippets Groups Projects
Commit 78e5a339 authored by Yury Norov's avatar Yury Norov
Browse files

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: default avatarYury Norov <yury.norov@gmail.com>
parent 8173aa26
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment