IB/iser: Fix RX/TX CQ resource leak on error flow
authorRoi Dayan <roid@mellanox.com>
Tue, 2 Sep 2014 14:08:41 +0000 (17:08 +0300)
committerRoland Dreier <roland@purestorage.com>
Mon, 22 Sep 2014 16:46:42 +0000 (09:46 -0700)
commitc33b15f00bbfb9324dc38e5176f576a0f46e0873
tree2befec36153b1d9afc4e3237320b72a906a3dbca
parent52addcf9d6669fa439387610bc65c92fa0980cef
IB/iser: Fix RX/TX CQ resource leak on error flow

When failing to allocate TX CQ we already allocated RX CQ, so we need to make
sure we release it. Also, when failing to register notification to the RX CQ
we currently leak both RX and TX CQs of the current index, fix that too.

Signed-off-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/ulp/iser/iser_verbs.c