]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Mar 2019 16:59:44 +0000 (17:59 +0100)
commit9df975bfbad72d7d27810d74e7041086b2030d38
treeecdafff00712401fbf1b7e9e52e40b3143485f13
parent6ab06e07f4f2988b21d925a1f45c198408cf97f8
scsi: 3w-9xxx: fix calls to dma_set_mask_and_coherent()

commit 33d6667416c73eb0b37f0f10f56d825b15389dab 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: b000bced5739 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/3w-9xxx.c