]> git.ipfire.org Git - thirdparty/linux.git/commit
nvme-pci: fix dma_vecs leak on p2p memory
authorKeith Busch <kbusch@kernel.org>
Wed, 20 May 2026 01:03:44 +0000 (18:03 -0700)
committerKeith Busch <kbusch@kernel.org>
Thu, 21 May 2026 14:48:58 +0000 (07:48 -0700)
commit85686c72966c5ee637893f124ddb31a1cace7bee
tree6e6dbbd8e615258ba0e3ef53f517a399ec99e873
parent431e40042d3599559e588b8946bb28bd440b4f65
nvme-pci: fix dma_vecs leak on p2p memory

We don't unmap P2P memory, so we don't need to track it. The dma_vec
allocation was getting leaked on the completion.

Fixes: b8b7570a7ec87 ("nvme-pci: fix dma unmapping when using PRPs and not using the IOVA mapping")
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/pci.c