diff options
author | Christoph Hellwig <hch@lst.de> | 2021-01-20 11:35:01 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-01-27 13:55:22 +0300 |
commit | 20fa3a7442798f2e9b7d33ff67e1bde873b9e0e5 (patch) | |
tree | 870456819ae683adb132683b773aaa70be4b375b /fs/jfs | |
parent | 88072260f3cac26b88102c01bd57cb6004b175ac (diff) | |
download | linux-20fa3a7442798f2e9b7d33ff67e1bde873b9e0e5.tar.xz |
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/jfs')
0 files changed, 0 insertions, 0 deletions