diff options
author | Hoang-Nam Nguyen <hnguyen@linux.vnet.ibm.com> | 2007-09-28 11:16:27 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2007-10-09 22:59:14 -0400 |
commit | 03f72a51cb1a0ba530e3308e3de84399a75b41ec (patch) | |
tree | a9930c35fb8d597455685af389912f462f24f6a7 /drivers/infiniband | |
parent | cd9281d873c91a01af0cb96ff0f75e9905e54403 (diff) |
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')
-rw-r--r-- | 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 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, | |||
890 | goto create_srq2; | 890 | goto create_srq2; |
891 | } | 891 | } |
892 | 892 | ||
893 | ehca_free_fw_ctrlblock(mqpcb); | ||
894 | |||
893 | return &my_qp->ib_srq; | 895 | return &my_qp->ib_srq; |
894 | 896 | ||
895 | create_srq2: | 897 | create_srq2: |