net/mlx5: fix endless loop when clearing flow flags
authorYongseok Koh <yskoh@mellanox.com>
Mon, 23 Jul 2018 18:27:44 +0000 (11:27 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 26 Jul 2018 12:05:52 +0000 (14:05 +0200)
commitc20d4a70caa5c64520addae5f2e867f911b3aa18
treed1beb0eec7f8ef9fa88f8195a980de53baf9623d
parent5366074b019aaf1a27eb5912b928496e871f73c4
net/mlx5: fix endless loop when clearing flow flags

If one of (*priv->rxqs)[] is null, the for loop can iterate infinitely as
idx can't be increased.

Fixes: cd24d526395e ("net/mlx5: add mark/flag flow action")

Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
Acked-by: Ori Kam <orika@mellanox.com>
Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
drivers/net/mlx5/mlx5_flow.c