aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/ehca
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 /drivers/infiniband/hw/ehca
parentIB/mlx4: Display misc device information under /sys/class/infiniband/ (diff)
downloadlinux-dev-03f72a51cb1a0ba530e3308e3de84399a75b41ec.tar.xz
linux-dev-03f72a51cb1a0ba530e3308e3de84399a75b41ec.zip
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>
Diffstat (limited to 'drivers/infiniband/hw/ehca')
-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 b10c7df669bb..2591651dac94 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: