]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8b15bd3541e8aa9d51b96b4583a9ee2435d5c4af
tree2befec36153b1d9afc4e3237320b72a906a3dbca
parent7055afb06189cf53fcf1841e6e60971221ded012
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