Michael Baum 6f155c0b9d net/mlx4: fix drop queue error handling
The function mlx4_drop_get() creates pointer to a struct mlx4_drop and
if needed allocates by rte_malloc.

If the allocation is failed the function goes to label “error”, and
there does dereference to a null pointer.

Skip resources cleaning when the memory allocation is failed.

Coverity issue: 146206
Coverity issue: 146146
Fixes: d3a7e09234e4 ("net/mlx4: allocate drop flow resources on demand")
Cc: stable@dpdk.org

Signed-off-by: Michael Baum <michaelba@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
2020-05-11 22:27:39 +02:00
..
2018-04-11 01:47:47 +02:00
2020-02-05 09:51:21 +01:00
2020-02-05 09:51:21 +01:00
2020-02-05 09:51:21 +01:00
2020-02-05 09:51:21 +01:00
2020-02-05 09:51:21 +01:00
2020-02-05 09:51:21 +01:00
2020-02-05 09:51:21 +01:00
2020-02-05 09:51:21 +01:00
2020-04-21 13:57:07 +02:00