scsi: aic94xx: fix calls to dma_set_mask_and_coherent()
authorHannes Reinecke <hare@suse.de>
Mon, 18 Feb 2019 07:34:22 +0000 (08:34 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 26 Feb 2019 02:37:26 +0000 (21:37 -0500)
commitc326de562f1fc149da4855a1b9d0433300c2a85d
tree685766df9b1c346722ee23cef742db372e8920e3
parent1feb3b02294994ee3a067c9b6cda6c244fd0ee18
scsi: aic94xx: fix calls to dma_set_mask_and_coherent()

The change to use dma_set_mask_and_coherent() incorrectly made a second
call with the 32 bit DMA mask value when the call with the 64 bit DMA mask
value succeeded.

[mkp: fixed subject]

Fixes: 3a21986f1a59 ("scsi: aic94xx: fully convert to the generic DMA API")
Cc: <stable@vger.kernel.org>
Signed-off-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Ewan D. Milne <emilne@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/aic94xx/aic94xx_init.c