Skip to content
Commit 924bd96e authored by Christoph Hellwig's avatar Christoph Hellwig
Browse files

nvme-pci: set the DMA mask earlier



Set the DMA mask before calling dma_addressing_limited, which depends on it.

Note that this stop checking the return value of dma_set_mask_and_coherent
as this function can only fail for masks < 32-bit.

Fixes: 3f30a79c ("nvme-pci: set constant paramters in nvme_pci_alloc_ctrl")
Reported-by: default avatarMichael Kelley <mikelley@microsoft.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarJens Axboe <axboe@kernel.dk>
Reviewed-by: default avatarSagi Grimberg <sagi@grimberg.me>
Tested-by: default avatarMichael Kelley <mikelley@microsoft.com>
parent 5f69f009
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment