Commit 91c4d8ad authored by chenxiang's avatar chenxiang Committed by Xie XiuQi
Browse files

scsi:hisi_sas: fix calls to dma_set_mask_and_coherent()



driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

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.  This resulted in FC connections failing due
to corrupted data buffers, and various other SCSI/FCP I/O errors.

Fixes: e4db40e7 ("scsi: hisi_sas: use dma_set_mask_and_coherent")
Cc: <stable@vger.kernel.org>

Signed-off-by: default avatarchenxiang (M) <chenxiang66@hisilicon.com>
Reviewed-by: default avatarhuangdaode <huangdaode@hisilicon.com>
Reviewed-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent bc065588
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment