Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

team: add missing attribute validation for array index

Add missing attribute validation for TEAM_ATTR_OPTION_ARRAY_INDEX
to the netlink policy.

Fixes: b13033262d24 ("team: introduce array options")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Jakub Kicinski and committed by
David S. Miller
669fcd77 dd25cb27

+1
+1
drivers/net/team/team.c
··· 2241 2241 [TEAM_ATTR_OPTION_TYPE] = { .type = NLA_U8 }, 2242 2242 [TEAM_ATTR_OPTION_DATA] = { .type = NLA_BINARY }, 2243 2243 [TEAM_ATTR_OPTION_PORT_IFINDEX] = { .type = NLA_U32 }, 2244 + [TEAM_ATTR_OPTION_ARRAY_INDEX] = { .type = NLA_U32 }, 2244 2245 }; 2245 2246 2246 2247 static int team_nl_cmd_noop(struct sk_buff *skb, struct genl_info *info)