[dpdk-stable] [PATCH 47/67] net/mlx5: fix invalid flow item check
Yongseok Koh
yskoh at mellanox.com
Tue Jun 5 02:11:09 CEST 2018
From: Xueming Li <xuemingl at mellanox.com>
[ upstream commit 2323cc3c2e68bad29cc25d3924dbe4c55d358499 ]
This patch fixed invalid flow item check.
Fixes: a6d83b6a9209 ("net/mlx5: standardize on negative errno values")
Signed-off-by: Xueming Li <xuemingl at mellanox.com>
Acked-by: Nelio Laranjeiro <nelio.laranjeiro at 6wind.com>
---
drivers/net/mlx5/mlx5_flow.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c
index 26f61ebbe..a5e20dfe9 100644
--- a/drivers/net/mlx5/mlx5_flow.c
+++ b/drivers/net/mlx5/mlx5_flow.c
@@ -865,8 +865,10 @@ mlx5_flow_convert_items_validate(const struct rte_flow_item items[],
break;
}
}
- if (!token)
+ if (!token) {
+ ret = -ENOTSUP;
goto exit_item_not_supported;
+ }
cur_item = token;
ret = mlx5_flow_item_validate(items,
(const uint8_t *)cur_item->mask,
--
2.11.0
More information about the stable
mailing list