nvme-pci: don't allocate dma_vec for IOVA mappings
authorChristoph Hellwig <hch@lst.de>
Fri, 11 Jul 2025 11:22:50 +0000 (13:22 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 11 Jul 2025 13:46:15 +0000 (07:46 -0600)
commit1bb94ff5ab4be2485884e0a46483f12629f3bb92
tree2635b901f82c7617dd04cc47891f9818bc666558
parent8b428f42f3edfd62422aa7ad87049ab232a2eaa9
nvme-pci: don't allocate dma_vec for IOVA mappings

Not only do IOVA mappings no need the separate dma_vec tracking, it
also won't free it and thus leak the allocations.

Fixes: b8b7570a7ec8 ("nvme-pci: fix dma unmapping when using PRPs and not using the IOVA mapping")
Reported-by: Klara Modin <klarasmodin@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Klara Modin <klarasmodin@gmail.com>
Link: https://lore.kernel.org/r/20250711112250.633269-1-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/pci.c