diff options
| author | Yury Norov <[email protected]> | 2022-09-19 21:05:54 +0000 |
|---|---|---|
| committer | Yury Norov <[email protected]> | 2022-10-01 17:22:57 +0000 |
| commit | 854701ba4c39afae2362ba19a580c461cb183e4f (patch) | |
| tree | dbfd1fc606cb607542cdcb61c2b1c9e56f41c81a /lib/test_bitmap.c | |
| parent | cpumask: add cpumask_nth_{,and,andnot} (diff) | |
| download | kernel-854701ba4c39afae2362ba19a580c461cb183e4f.tar.gz kernel-854701ba4c39afae2362ba19a580c461cb183e4f.zip | |
net: fix cpu_max_bits_warn() usage in netif_attrmask_next{,_and}
The functions require to be passed with a cpu index prior to one that is
the first to start search, so the valid input range is [-1, nr_cpu_ids-1).
However, the code checks against [-1, nr_cpu_ids).
Acked-by: Jakub Kicinski <[email protected]>
Signed-off-by: Yury Norov <[email protected]>
Diffstat (limited to 'lib/test_bitmap.c')
0 files changed, 0 insertions, 0 deletions
