IB/iser: Fix module init not cleaning up on error flow
authorRoi Dayan <roid@mellanox.com>
Wed, 9 Dec 2015 12:11:59 +0000 (14:11 +0200)
committerDoug Ledford <dledford@redhat.com>
Thu, 24 Dec 2015 05:17:33 +0000 (00:17 -0500)
commit08ff089b12182ee5c2233935df2e416db60083a6
tree1d9164db672a3c2ee32daa0b49dd60e059d41cee
parent46e741f4105320875f70b94abaa1e6b089c6c354
IB/iser: Fix module init not cleaning up on error flow

Destroy workqueue on transport register error, also
release kmem cache on workqueue allocation error.

Signed-off-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/iser/iscsi_iser.c