]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nvme-pci: use the same attributes when freeing host_mem_desc_bufs.
authorLiviu Dudau <liviu@dudau.co.uk>
Sat, 29 Dec 2018 17:23:43 +0000 (17:23 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Feb 2019 09:20:50 +0000 (10:20 +0100)
commit90ad1dc9c66c5b70346eef30be1ed3a407578a1b
tree3109e8885d271a0684484ce30aaacb95be3311ac
parenta928c675cf0f2aa14bf4761b94089a02179f0375
nvme-pci: use the same attributes when freeing host_mem_desc_bufs.

[ Upstream commit cc667f6d5de023ee131e96bb88e5cddca23272bd ]

When using HMB the PCIe host driver allocates host_mem_desc_bufs using
dma_alloc_attrs() but frees them using dma_free_coherent(). Use the
correct dma_free_attrs() function to free the buffers.

Signed-off-by: Liviu Dudau <liviu@dudau.co.uk>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvme/host/pci.c