NVMe: Use dma_set_mask() correctly
authorMatthew Wilcox <matthew.r.wilcox@intel.com>
Tue, 28 May 2013 20:46:46 +0000 (16:46 -0400)
committerMatthew Wilcox <matthew.r.wilcox@intel.com>
Tue, 28 May 2013 20:46:46 +0000 (16:46 -0400)
commitcf9f123b38345b2c2777e642eb9bb561f4b7de91
treefafec4fa1735722cc79766b7f55864252c671aad
parentcf90bc4830b858487fe4b9b9ecd0031e23ca3e83
NVMe: Use dma_set_mask() correctly

In some circumstances setting a 64-bit DMA mask can fail, as explained
in Documentation/DMA-API-HOWTO.txt.  Use the recommended code sequence
to set a 32-bit DMA mask if setting a 64-bit DMA mask fails.

Reported-by: Chayan Biswas <Chayan.Biswas@sandisk.com>
Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
drivers/block/nvme-core.c