]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: csiostor: fix calls to dma_set_mask_and_coherent()
authorHannes Reinecke <hare@suse.de>
Mon, 18 Feb 2019 07:34:24 +0000 (08:34 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 26 Feb 2019 02:44:40 +0000 (21:44 -0500)
commit5e1a21a9b43477eebd7a57953832ef89039f41f9
tree3040f1f64d916490074233b65c5817e419536bb4
parentb57a35c421f093e76a786cd74c6b70199d2676ea
scsi: csiostor: 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: 14c27b49f3fe ("scsi: csiostor: switch to 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/csiostor/csio_init.c