linux/drivers/scsi/libsas
John Garry 9702c67c60 scsi: libsas: fix ata xfer length
The total ata xfer length may not be calculated properly, in that we do
not use the proper method to get an sg element dma length.

According to the code comment, sg_dma_len() should be used after
dma_map_sg() is called.

This issue was found by turning on the SMMUv3 in front of the hisi_sas
controller in hip07. Multiple sg elements were being combined into a
single element, but the original first element length was being use as
the total xfer length.

Cc: <stable@vger.kernel.org>
Fixes: ff2aeb1eb6 ("libata: convert to chained sg")
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2017-03-20 09:45:08 -04:00
..
Kconfig
Makefile
sas_ata.c scsi: libsas: fix ata xfer length 2017-03-20 09:45:08 -04:00
sas_discover.c
sas_dump.c
sas_dump.h
sas_event.c
sas_expander.c
sas_host_smp.c
sas_init.c scsi: libsas: remove sas_scsi_timed_out 2017-02-06 19:09:12 -05:00
sas_internal.h scsi: libsas: remove sas_scsi_timed_out 2017-02-06 19:09:12 -05:00
sas_phy.c
sas_port.c
sas_scsi_host.c scsi: libsas: remove sas_scsi_timed_out 2017-02-06 19:09:12 -05:00
sas_task.c