[ofa-general] [PATCH 1/3] IB/ehca: Fix mem leak of firmware ctrlblock

Hoang-Nam Nguyen hnguyen at linux.vnet.ibm.com
Fri Sep 28 08:16:27 PDT 2007


From 9506aada669ee539e80cc78205582eb6f213a1c3 Mon Sep 17 00:00:00 2001
From: Hoang-Nam Nguyen <hnguyen at de.ibm.com>
Date: Fri, 28 Sep 2007 09:41:01 +0200
Subject: [PATCH] IB/ehca: Fix mem leak of firmware ctrlblock when creating SRQ

Signed-off-by: Hoang-Nam Nguyen <hnguyen at de.ibm.com>
---
 drivers/infiniband/hw/ehca/ehca_qp.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/infiniband/hw/ehca/ehca_qp.c b/drivers/infiniband/hw/ehca/ehca_qp.c
index b10c7df..2591651 100644
--- a/drivers/infiniband/hw/ehca/ehca_qp.c
+++ b/drivers/infiniband/hw/ehca/ehca_qp.c
@@ -890,6 +890,8 @@ struct ib_srq *ehca_create_srq(struct ib_pd *pd,
 		goto create_srq2;
 	}
 
+	ehca_free_fw_ctrlblock(mqpcb);
+
 	return &my_qp->ib_srq;
 
 create_srq2:
-- 
1.5.2





More information about the general mailing list