]> git.ipfire.org Git - thirdparty/kernel/stable.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:33:35 +0000 (19:33 +0200)
commita9b08f949f15cbbb2e1123802fdaa816348d9ee3
treee5ccb85ed93c86fae4ce8573989c50e336e87cfa
parentd36593d7ad0123cdda32c25e5d70c4521e4c39e9
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