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-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=03f72a51cb1a0ba530e3308e3de84399a75b41ec;p=openwrt%2Fstaging%2Fblogic.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 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: