Skip to content

Commit 1ad689b

Browse files
Jack Morgensteingregkh
authored andcommitted
IB/mlx4: Fix ib device initialization error flow
commit 99e68909d5aba1861897fe7afc3306c3c81b6de0 upstream. In mlx4_ib_add, procedure mlx4_ib_alloc_eqs is called to allocate EQs. However, in the mlx4_ib_add error flow, procedure mlx4_ib_free_eqs is not called to free the allocated EQs. Fixes: e605b74 ("IB/mlx4: Increase the number of vectors (EQs) available for ULPs") Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il> Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Doug Ledford <dledford@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 1360f43 commit 1ad689b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • drivers/infiniband/hw/mlx4

drivers/infiniband/hw/mlx4/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2491,6 +2491,7 @@ static void *mlx4_ib_add(struct mlx4_dev *dev)
24912491
mlx4_ib_delete_counters_table(ibdev, &ibdev->counters_table[i]);
24922492

24932493
err_map:
2494+
mlx4_ib_free_eqs(dev, ibdev);
24942495
iounmap(ibdev->uar_map);
24952496

24962497
err_uar:

0 commit comments

Comments
 (0)