Christoph Hellwig 69861dcc78 nvme-pci: fix error unwind in nvme_map_data
commit fa0732168fa1369dd089e5b06d6158a68229f7b7 upstream.

Properly unwind step by step using refactored helpers from nvme_unmap_data
to avoid a potential double dma_unmap on a mapping failure.

Fixes: 7fe07d14f71f ("nvme-pci: merge nvme_free_iod into nvme_unmap_data")
Reported-by: Marc Orr <marcorr@google.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Marc Orr <marcorr@google.com>
Signed-off-by: Marc Orr <marcorr@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-03-07 12:20:41 +01:00
..
2021-03-04 10:26:47 +01:00
2021-03-04 10:26:43 +01:00
2020-09-09 19:12:21 +02:00
2021-01-19 18:26:15 +01:00
2020-12-30 11:51:26 +01:00
2021-03-04 10:26:29 +01:00
2021-03-04 10:26:38 +01:00