Skip to content
Commit 854701ba authored by Yury Norov's avatar Yury Norov
Browse files

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: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarYury Norov <yury.norov@gmail.com>
parent 944c417d
Loading
Loading
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