IB/ehca: Fix mem leak of firmware ctrlblock in ehca_create_srq()
authorHoang-Nam Nguyen <hnguyen@linux.vnet.ibm.com>
Fri, 28 Sep 2007 15:16:27 +0000 (17:16 +0200)
committerRoland Dreier <rolandd@cisco.com>
Wed, 10 Oct 2007 02:59:14 +0000 (19:59 -0700)
Signed-off-by: Hoang-Nam Nguyen <hnguyen@de.ibm.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ehca/ehca_qp.c

index b10c7df669bb1f30c15540e25ff35fa08da72f54..2591651dac949ffdb64f66db3a5915169df1f030 100644 (file)
@@ -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: