]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
scsi: 3w-sas: fix calls to dma_set_mask_and_coherent()
authorHannes Reinecke <hare@suse.de>
Mon, 18 Feb 2019 07:34:21 +0000 (08:34 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Mar 2019 16:59:44 +0000 (17:59 +0100)
commitf9b3c1f9dbdd14cd5243d3078bb29bae599cfb7c
tree601f6230dda9d7b1a171dcd7fdb2433f98c99360
parentf0e4c02073a117b16256e3651ac82122cb3b63ed
scsi: 3w-sas: fix calls to dma_set_mask_and_coherent()

commit 1feb3b02294994ee3a067c9b6cda6c244fd0ee18 upstream.

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: b1fa122930c4 ("scsi: 3w-sas: 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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/3w-sas.c