net/mlx5: fix array overflow
authorNélio Laranjeiro <nelio.laranjeiro@6wind.com>
Thu, 2 Nov 2017 13:30:03 +0000 (14:30 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 2 Nov 2017 18:57:53 +0000 (19:57 +0100)
commite4aefd6dd267c29a76b8d719220f8ba7fc50f388
treea2f802cbf4aeaa397d29c788c0e2cc9e5dd543c2
parent629bccc440a3c41273143edea6512cef6cd0eeb4
net/mlx5: fix array overflow

VLAN id is limited to MLX5_MAX_VLAN_IDS which is not verified by the code
before trying to add a new VLAN filter.

Fixes: 272733b5ebfd ("net/mlx5: use flow to enable unicast traffic")

Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
drivers/net/mlx5/mlx5_vlan.c