net/mlx5: fix memory leak on Direct Verbs error
authorDekel Peled <dekelp@mellanox.com>
Mon, 29 Oct 2018 16:09:10 +0000 (18:09 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 5 Nov 2018 14:01:25 +0000 (15:01 +0100)
commit7199088f9dc1087b1d89797e174f7f6a0e51bf2e
tree3b67d46eb6fe18232838bf27921954c66e70ed7a
parent5db1684e7593c6fc8769b19765c8c6b9d4697f45
net/mlx5: fix memory leak on Direct Verbs error

Add freeing of allocated memory before exiting on mlx5dv error.

Fixes: fc2c498ccb94 ("net/mlx5: add Direct Verbs translate items")

Signed-off-by: Dekel Peled <dekelp@mellanox.com>
Acked-by: Yongseok Koh <yskoh@mellanox.com>
drivers/net/mlx5/mlx5_flow_dv.c