stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH rdma-next 1/2] IB/mlx4: Fix ib device initialization error flow
@ 2017-03-21 10:57 Leon Romanovsky
  2017-03-21 10:57 ` [PATCH rdma-next 2/2] IB/mlx4: Reduce SRIOV multicast cleanup warning message to debug level Leon Romanovsky
  2017-04-24 16:10 ` [PATCH rdma-next 1/2] IB/mlx4: Fix ib device initialization error flow Doug Ledford
  0 siblings, 2 replies; 4+ messages in thread
From: Leon Romanovsky @ 2017-03-21 10:57 UTC (permalink / raw)
  To: Doug Ledford; +Cc: linux-rdma, Jack Morgenstein, # v3 . 4+

From: Jack Morgenstein <jackm@dev.mellanox.co.il>

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: e605b743f33d ("IB/mlx4: Increase the number of vectors (EQs) available for ULPs")
Cc: <stable@vger.kernel.org> # v3.4+
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
---
 drivers/infiniband/hw/mlx4/main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/infiniband/hw/mlx4/main.c b/drivers/infiniband/hw/mlx4/main.c
index fba94df28cf1..c7e6d137c162 100644
--- a/drivers/infiniband/hw/mlx4/main.c
+++ b/drivers/infiniband/hw/mlx4/main.c
@@ -2941,6 +2941,7 @@ static void *mlx4_ib_add(struct mlx4_dev *dev)
 		mlx4_ib_delete_counters_table(ibdev, &ibdev->counters_table[i]);
 
 err_map:
+	mlx4_ib_free_eqs(dev, ibdev);
 	iounmap(ibdev->uar_map);
 
 err_uar:
-- 
2.12.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-04-24 16:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-21 10:57 [PATCH rdma-next 1/2] IB/mlx4: Fix ib device initialization error flow Leon Romanovsky
2017-03-21 10:57 ` [PATCH rdma-next 2/2] IB/mlx4: Reduce SRIOV multicast cleanup warning message to debug level Leon Romanovsky
2017-04-24 16:10   ` Doug Ledford
2017-04-24 16:10 ` [PATCH rdma-next 1/2] IB/mlx4: Fix ib device initialization error flow Doug Ledford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).