nvme-rdma: fix error flow during mapping request data
authorMax Gurtovoy <maxg@mellanox.com>
Sun, 10 Jun 2018 13:58:29 +0000 (16:58 +0300)
committerChristoph Hellwig <hch@lst.de>
Mon, 11 Jun 2018 14:17:58 +0000 (16:17 +0200)
commit94423a8f89ed7b66746cade3351a185fb6a1f38d
tree6188815d7b4d99774f31d2d4afaea539fdcfa82d
parent2796b569591c6f0681303f148a55e50c2cc8304a
nvme-rdma: fix error flow during mapping request data

After dma mapping the sgl, we map the sgl to nvme sgl descriptor. In case
of failure during the last mapping we never dma unmap the sgl.

Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/rdma.c