]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: 3w-9xxx: fix calls to dma_set_mask_and_coherent()
authorHannes Reinecke <hare@suse.de>
Mon, 18 Feb 2019 07:34:20 +0000 (08:34 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 26 Feb 2019 02:37:25 +0000 (21:37 -0500)
commitb3689a51bb904fe17d84ad0b08574ca78ae76ebc
treedb98e8010ec912be28221caf016d3488bd64a6d0
parent256c6f973f828d9aa25546dfa8ef9b719e32f1ed
scsi: 3w-9xxx: 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.

Fixes: e3a6cde87d77 ("scsi: 3w-9xxx: 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/3w-9xxx.c