OpenCloudOS-Kernel/drivers/scsi/hisi_sas
Xiang Chen 0d762b3af2 scsi: hisi_sas: fix a bug in hisi_sas_dev_gone()
When device gone, NULL pointer can be accessed in free_device callback
if during SAS controller reset as we clear structure sas_dev prior.

Actually we can only set dev_type as SAS_PHY_UNUSED and not clear
structure sas_dev as all the members of structure sas_dev will be
re-initialized after device found.

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>
2018-01-22 20:03:59 -05:00
..
Kconfig scsi: hisi_sas: add skeleton v3 hw driver 2017-06-19 21:31:25 -04:00
Makefile scsi: hisi_sas: add skeleton v3 hw driver 2017-06-19 21:31:25 -04:00
hisi_sas.h scsi: hisi_sas: directly attached disk LED feature for v2 hw 2018-01-22 20:03:59 -05:00
hisi_sas_main.c scsi: hisi_sas: fix a bug in hisi_sas_dev_gone() 2018-01-22 20:03:59 -05:00
hisi_sas_v1_hw.c scsi: hisi_sas: use an general way to delay PHY work 2017-12-14 21:25:03 -05:00
hisi_sas_v2_hw.c scsi: hisi_sas: directly attached disk LED feature for v2 hw 2018-01-22 20:03:59 -05:00
hisi_sas_v3_hw.c scsi: hisi_sas: Change frame type for SET MAX commands 2018-01-10 23:25:08 -05:00