提交 99e68909 编写于 作者: J Jack Morgenstein 提交者: Doug Ledford

IB/mlx4: Fix ib device initialization error flow

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: e605b743 ("IB/mlx4: Increase the number of vectors (EQs) available for ULPs")
Cc: <stable@vger.kernel.org> # v3.4+
Signed-off-by: NJack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: NLeon Romanovsky <leon@kernel.org>
Signed-off-by: NDoug Ledford <dledford@redhat.com>
上级 dd77abf8
...@@ -2937,6 +2937,7 @@ static void *mlx4_ib_add(struct mlx4_dev *dev) ...@@ -2937,6 +2937,7 @@ static void *mlx4_ib_add(struct mlx4_dev *dev)
mlx4_ib_delete_counters_table(ibdev, &ibdev->counters_table[i]); mlx4_ib_delete_counters_table(ibdev, &ibdev->counters_table[i]);
err_map: err_map:
mlx4_ib_free_eqs(dev, ibdev);
iounmap(ibdev->uar_map); iounmap(ibdev->uar_map);
err_uar: err_uar:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册