Dekel Peled 6b7af102d0 net/mlx5: fix getting Rx queue type
Function mlx5_rxq_get_type() uses the input queue index, without
checking it, as index to the Rx queues array.
If this value is too high, it will result in pointer to memory out
of Rx queues array bounds.

This patch adds check of the input queue index, to verify it is valid.

Fixes: d85c7b5ea59f ("net/mlx5: split hairpin flows")

Signed-off-by: Dekel Peled <dekelp@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
2019-11-20 17:36:05 +01:00
..
2019-11-08 23:15:04 +01:00
2019-11-20 17:36:05 +01:00
2019-10-25 19:00:22 +02:00
2019-11-11 14:23:01 +01:00
2019-11-11 14:23:01 +01:00
2019-11-12 01:43:47 +01:00