From: Hoang-Nam Nguyen Date: Fri, 28 Sep 2007 15:16:27 +0000 (+0200) Subject: IB/ehca: Fix mem leak of firmware ctrlblock in ehca_create_srq() X-Git-Tag: v3.12-rc1~26467^2~44 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=03f72a51cb1a0ba530e3308e3de84399a75b41ec;p=kernel%2Fkernel-generic.git IB/ehca: Fix mem leak of firmware ctrlblock in ehca_create_srq() Signed-off-by: Hoang-Nam Nguyen Signed-off-by: Roland Dreier --- 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: