Skip to content

Commit

Permalink
IB/ehca: Fix mem leak of firmware ctrlblock in ehca_create_srq()
Browse files Browse the repository at this point in the history
Signed-off-by: Hoang-Nam Nguyen <hnguyen@de.ibm.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
  • Loading branch information
Hoang-Nam Nguyen authored and Roland Dreier committed Oct 10, 2007
1 parent cd9281d commit 03f72a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/infiniband/hw/ehca/ehca_qp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 03f72a5

Please sign in to comment.