]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaade7e5257aca82379a272c23f62c50d242a2fdf
treea81f76765da19f707e69631bd285695441a6f805
parenta39c006271d911213fb3856e5fc1adaa60050f18
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: 80a8d872d38e ("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