diff options
author | Jack Morgenstein <[email protected]> | 2017-03-21 12:57:05 +0200 |
---|---|---|
committer | Doug Ledford <[email protected]> | 2017-04-21 12:26:05 -0400 |
commit | 99e68909d5aba1861897fe7afc3306c3c81b6de0 (patch) | |
tree | 88a910559d1332805bbee1d0fe7d50a37f793528 | |
parent | dd77abf8a03a1ebd4dd3ddebecce312dcb0d1af1 (diff) |
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: e605b743f33d ("IB/mlx4: Increase the number of vectors (EQs) available for ULPs")
Cc: <[email protected]> # v3.4+
Signed-off-by: Jack Morgenstein <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
-rw-r--r-- | drivers/infiniband/hw/mlx4/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mlx4/main.c b/drivers/infiniband/hw/mlx4/main.c index 2cc6f21baea1..7a1b345b6aa9 100644 --- a/drivers/infiniband/hw/mlx4/main.c +++ b/drivers/infiniband/hw/mlx4/main.c @@ -2937,6 +2937,7 @@ err_counter: mlx4_ib_delete_counters_table(ibdev, &ibdev->counters_table[i]); err_map: + mlx4_ib_free_eqs(dev, ibdev); iounmap(ibdev->uar_map); err_uar: |