Browse Source

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>
Hoang-Nam Nguyen 17 years ago
parent
commit
03f72a51cb
1 changed files with 2 additions and 0 deletions
  1. 2 0
      drivers/infiniband/hw/ehca/ehca_qp.c

+ 2 - 0
drivers/infiniband/hw/ehca/ehca_qp.c

@@ -890,6 +890,8 @@ struct ib_srq *ehca_create_srq(struct ib_pd *pd,
 		goto create_srq2;
 		goto create_srq2;
 	}
 	}
 
 
+	ehca_free_fw_ctrlblock(mqpcb);
+
 	return &my_qp->ib_srq;
 	return &my_qp->ib_srq;
 
 
 create_srq2:
 create_srq2: