]> git.baikalelectronics.ru Git - kernel.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)
committerChristoph Hellwig <hch@lst.de>
Wed, 9 Jan 2019 18:47:02 +0000 (13:47 -0500)
commitda8929e3d56fe2297ea5086ff03aaa77ebe791ba
tree3c892ecb4c2e0ab69bf0937a3a84c065f55d25cb
parent20f332e6f71a5cd8c5b85bcfda3a8d5aa20de75d
nvme-pci: use the same attributes when freeing host_mem_desc_bufs.

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>
drivers/nvme/host/pci.c