linux_dsm_epyc7002/drivers/scsi/hisi_sas
Xiaofei Tan 2f6bca202b scsi: hisi_sas: add check of device in hisi_sas_task_exec()
Currently we don't check that device is not gone before dereferencing
its elements in the function hisi_sas_task_exec() (specifically, the DQ
pointer).

This patch fixes this issue by filling in the DQ pointer in
hisi_sas_task_prep() after we check that the device pointer is still
safe to reference.

[mkp: typo]

Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2018-05-18 11:22:09 -04:00
..
hisi_sas_main.c scsi: hisi_sas: add check of device in hisi_sas_task_exec() 2018-05-18 11:22:09 -04:00
hisi_sas_v1_hw.c scsi: hisi_sas: Don't lock DQ for complete task sending 2018-05-18 11:22:09 -04:00
hisi_sas_v2_hw.c scsi: hisi_sas: Don't lock DQ for complete task sending 2018-05-18 11:22:09 -04:00
hisi_sas_v3_hw.c scsi: hisi_sas: Use device lock to protect slot alloc/free 2018-05-18 11:22:09 -04:00
hisi_sas.h scsi: hisi_sas: Don't lock DQ for complete task sending 2018-05-18 11:22:09 -04:00
Kconfig scsi: hisi_sas: Remove depends on HAS_DMA in case of platform dependency 2018-03-21 18:34:21 -04:00
Makefile scsi: hisi_sas: add skeleton v3 hw driver 2017-06-19 21:31:25 -04:00