nvme-pci: fix DMA direction of unmapping integrity data
authorMing Lei <ming.lei@redhat.com>
Thu, 13 Jul 2023 09:26:20 +0000 (17:26 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 23 Jul 2023 11:49:27 +0000 (13:49 +0200)
commitbf2f2c059f17c198e4d041348eb84db1152e7568
tree9cd13908830c778b3526a6cc37dcfc002378b022
parent70feebdbfad85772ab3ef152812729cab5c6c426
nvme-pci: fix DMA direction of unmapping integrity data

[ Upstream commit b8f6446b6853768cb99e7c201bddce69ca60c15e ]

DMA direction should be taken in dma_unmap_page() for unmapping integrity
data.

Fix this DMA direction, and reported in Guangwu's test.

Reported-by: Guangwu Zhang <guazhang@redhat.com>
Fixes: 4aedb705437f ("nvme-pci: split metadata handling from nvme_map_data / nvme_unmap_data")
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvme/host/pci.c