linux/drivers/scsi/hisi_sas
Xiang Chen 847e835529 scsi: hisi_sas: Avoid accessing to SSP task for SMP I/Os
hisi_sas_slot_task_free() attempts to dereference SSP task for non-ATA
tasks. If the task is SMP, the code may reference the wrong structure
although this may not cause any problems.

To avoid this, only access to SSP task when slot->n_elem_dif is not 0 which
indicates this is an SSP task.

Link: https://lore.kernel.org/r/1598958790-232272-2-git-send-email-john.garry@huawei.com
Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2020-09-02 22:49:07 -04:00
..
hisi_sas_main.c scsi: hisi_sas: Avoid accessing to SSP task for SMP I/Os 2020-09-02 22:49:07 -04:00
hisi_sas_v1_hw.c SCSI misc on 20200806 2020-08-06 16:50:07 -07:00
hisi_sas_v2_hw.c SCSI misc on 20200806 2020-08-06 16:50:07 -07:00
hisi_sas_v3_hw.c SCSI misc on 20200806 2020-08-06 16:50:07 -07:00
hisi_sas.h scsi: hisi_sas: Rename hisi_sas_cq.pci_irq_mask 2020-01-20 19:31:14 -05:00
Kconfig scsi: hisi_sas: Fix build error without SATA_HOST 2020-04-13 13:28:13 -04:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00