Commit 8750539b authored by Hangbin Liu's avatar Hangbin Liu Committed by Jakub Kicinski
Browse files

net: team: fix incorrect maxattr



The maxattr should be the latest attr value, i.e. array size - 1,
not total array size.

Reported-by: default avatar <syzbot+ecd7e07b4be038658c9f@syzkaller.appspotmail.com>
Fixes: 948dbafc ("net: team: use policy generated by YAML spec")
Suggested-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarHangbin Liu <liuhangbin@gmail.com>
Link: https://lore.kernel.org/r/20240409092812.3999785-1-liuhangbin@gmail.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 07409cf7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment