team: add missing attribute validation for port ifindex
authorJakub Kicinski <kuba@kernel.org>
Tue, 3 Mar 2020 05:05:21 +0000 (21:05 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Mar 2020 06:17:45 +0000 (07:17 +0100)
commitcae05c2998aed2931bd55a703b2ade4e785be1d4
tree7dd7f1f2cdfbb573b555315416fac8273dc98d69
parente31cd96bce59ce8ae16b4c96d7f5d54852a7384a
team: add missing attribute validation for port ifindex

[ Upstream commit dd25cb272ccce4db67dc8509278229099e4f5e99 ]

Add missing attribute validation for TEAM_ATTR_OPTION_PORT_IFINDEX
to the netlink policy.

Fixes: 80f7c6683fe0 ("team: add support for per-port 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