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: v2.6.24-rc1~1453^2~44 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=03f72a51cb1a0ba530e3308e3de84399a75b41ec;p=linux-2.6-omap-h63xx.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 b10c7df669b..2591651dac9 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: