diff options
author | Miroslaw Walukiewicz <miroslaw.walukiewicz@intel.com> | 2009-04-21 16:16:48 -0700 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2009-04-21 16:16:48 -0700 |
commit | 5d1af5c83232c5a02b9dc0fe43053b4ddc005224 (patch) | |
tree | 705fa258b696855d355fa8ebf2af84ced5f3fa29 /drivers/infiniband/hw/nes/nes_verbs.h | |
parent | cc005fa20c5229c283bea4958869da1e3c8a3720 (diff) |
RDMA/nes: Fix resource issues in nes_create_cq() and nes_destroy_cq()
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>
Diffstat (limited to 'drivers/infiniband/hw/nes/nes_verbs.h')
-rw-r--r-- | drivers/infiniband/hw/nes/nes_verbs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/nes/nes_verbs.h b/drivers/infiniband/hw/nes/nes_verbs.h index 5e48f67fbe8..41c07f29f7c 100644 --- a/drivers/infiniband/hw/nes/nes_verbs.h +++ b/drivers/infiniband/hw/nes/nes_verbs.h @@ -112,6 +112,7 @@ struct nes_cq { spinlock_t lock; u8 virtual_cq; u8 pad[3]; + u32 mcrqf; }; struct nes_wq { |