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)
commitcc667f6d5de023ee131e96bb88e5cddca23272bd
tree3c892ecb4c2e0ab69bf0937a3a84c065f55d25cb
parentc61e678f30da733a1b7fdd5983d0770de2e6009c
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