diff options
author | Christoph Hellwig <hch@lst.de> | 2023-02-13 08:58:33 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2023-02-14 08:36:40 +0300 |
commit | 924bd96ea27d53706147a94b8e576080535785df (patch) | |
tree | 545d5e661ed496d7bcfc4172a65a093cec883a29 /rust | |
parent | 5f69f009b7c445ddd219609c0085825c6270415a (diff) | |
download | linux-924bd96ea27d53706147a94b8e576080535785df.tar.xz |
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: 3f30a79c2e2c ("nvme-pci: set constant paramters in nvme_pci_alloc_ctrl")
Reported-by: Michael Kelley <mikelley@microsoft.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Tested-by: Michael Kelley <mikelley@microsoft.com>
Diffstat (limited to 'rust')
0 files changed, 0 insertions, 0 deletions