IB/iser: Fix possible bogus DMA unmapping
authorSagi Grimberg <sagig@mellanox.com>
Thu, 6 Aug 2015 15:32:50 +0000 (18:32 +0300)
committerDoug Ledford <dledford@redhat.com>
Sun, 30 Aug 2015 22:12:28 +0000 (18:12 -0400)
commit8d5944d80359e645feb2ebd069a6f4caf7825e40
tree2a2dcacceb1f7d9c0ed7f40c55a44008dded20b6
parent02816a8b8881f9dea68883c9b72672e87cb91d36
IB/iser: Fix possible bogus DMA unmapping

If iser_initialize_task_headers() routine failed before
dma mapping, we should not attempt to unmap in cleanup_task().

Fixes: 7414dde0a6c3a958e (IB/iser: Fix race between iser connection ...)
Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/iser/iscsi_iser.c
drivers/infiniband/ulp/iser/iscsi_iser.h