]> www.infradead.org Git - users/jedix/linux-maple.git/commit
IB/iser: Fix possible bogus DMA unmapping
authorSagi Grimberg <sagig@mellanox.com>
Thu, 6 Aug 2015 15:32:50 +0000 (18:32 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Sep 2015 17:26:17 +0000 (19:26 +0200)
commit6465d5d793ecc69c78c1ad7da2e4bbd13de9f063
treec35ac064974ff8995d80daec74187fce040d0fa1
parentcdb6f383011c73248db3974bc5175ba45053005d
IB/iser: Fix possible bogus DMA unmapping

commit 8d5944d80359e645feb2ebd069a6f4caf7825e40 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/ulp/iser/iscsi_iser.c
drivers/infiniband/ulp/iser/iscsi_iser.h