RDMA/nes: Fix resource issues in nes_create_cq() and nes_destroy_cq()
authorMiroslaw Walukiewicz <miroslaw.walukiewicz@intel.com>
Tue, 21 Apr 2009 23:16:48 +0000 (16:16 -0700)
committerRoland Dreier <rolandd@cisco.com>
Tue, 21 Apr 2009 23:16:48 +0000 (16:16 -0700)
In error paths where a CQ is not created, pbl is not freeed properly.

In nes_destroy_cq(), add the corresponding check for nescq->mcrqf to
not call nes_free_resource() when it is already done in nes_create_cq().

Signed-off-by: Miroslaw Walukiewicz <miroslaw.walukiewicz@intel.com>
Signed-off-by: Chien Tung <chien.tin.tung@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>

No differences found