team: add missing attribute validation for array index
authorJakub Kicinski <kuba@kernel.org>
Tue, 3 Mar 2020 05:05:22 +0000 (21:05 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Mar 2020 06:17:45 +0000 (07:17 +0100)
commit6049f6122a51cf5a96598f26727c413bee0635da
tree5eca0ac9539ce0f0f624696168600c61677b231f
parentcae05c2998aed2931bd55a703b2ade4e785be1d4
team: add missing attribute validation for array index

[ Upstream commit 669fcd7795900cd1880237cbbb57a7db66cb9ac8 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/team/team.c