[ofa-general][PATCH] mlx4_core: Avoid double icms free

Yevgeny Petrilin yevgenyp at mellanox.co.il
Sun Aug 16 06:12:54 PDT 2009


On cleanup flow on init_hca, the function calls close_hca(), followed by
free_icms() and UNMAP_FA(). Both those functions are also called from close_hca().

Signed-off-by: Yevgeny Petrilin <yevgenyp at mellanox.co.il>
---
 drivers/net/mlx4/main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/mlx4/main.c b/drivers/net/mlx4/main.c
index dac621b..a0a52f1 100644
--- a/drivers/net/mlx4/main.c
+++ b/drivers/net/mlx4/main.c
@@ -786,7 +786,7 @@ static int mlx4_init_hca(struct mlx4_dev *dev)
 	return 0;
 
 err_close:
-	mlx4_close_hca(dev);
+	mlx4_CLOSE_HCA(dev, 0);
 
 err_free_icm:
 	mlx4_free_icms(dev);
-- 
1.6.0




More information about the general mailing list