net/mlx5: prevent memory leak in mlx5_fpga_conn_create_cq
authorNavid Emamdoost <navid.emamdoost@gmail.com>
Wed, 25 Sep 2019 03:20:34 +0000 (22:20 -0500)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 18 Oct 2019 19:11:54 +0000 (12:11 -0700)
commitc8c2a057fdc7de1cd16f4baa51425b932a42eb39
treea81f76765da19f707e69631bd285695441a6f805
parent61ea02d2c13106116c6e4916ac5d9dd41151c959
net/mlx5: prevent memory leak in mlx5_fpga_conn_create_cq

In mlx5_fpga_conn_create_cq if mlx5_vector2eqn fails the allocated
memory should be released.

Fixes: 537a50574175 ("net/mlx5: FPGA, Add high-speed connection routines")
Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c