summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHoang-Nam Nguyen <hnguyen@linux.vnet.ibm.com>2007-09-28 17:16:27 +0200
committerRoland Dreier <rolandd@cisco.com>2007-10-09 19:59:14 -0700
commit03f72a51cb1a0ba530e3308e3de84399a75b41ec (patch)
treea9930c35fb8d597455685af389912f462f24f6a7
parentcd9281d873c91a01af0cb96ff0f75e9905e54403 (diff)
downloadop-kernel-dev-03f72a51cb1a0ba530e3308e3de84399a75b41ec.zip
op-kernel-dev-03f72a51cb1a0ba530e3308e3de84399a75b41ec.tar.gz
IB/ehca: Fix mem leak of firmware ctrlblock in ehca_create_srq()
Signed-off-by: Hoang-Nam Nguyen <hnguyen@de.ibm.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
-rw-r--r--drivers/infiniband/hw/ehca/ehca_qp.c2
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:
OpenPOWER on IntegriCloud