linux/drivers/scsi/hisi_sas
Xiaofei Tan d37a008291 scsi: hisi_sas: fix free'ing in probe and remove
This patch addresses 4 problems in the module probe/remove:

 - When hisi_sas_shost_alloc() fails after we alloc shost memory, we
   should free shost memory before the function returns.

 - When hisi_sas_probe() fails after we alloc the HBA memories, we
   should also free the HBA memories.

 - We should free shost memory at the end of hisi_sas_remove().

 - sha->core.shost is set twice, so remove extra set.

Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Reviewed-by: Quentin Lambert <lambert.quentin@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2016-12-05 16:54:12 -05:00
..
hisi_sas_main.c scsi: hisi_sas: fix free'ing in probe and remove 2016-12-05 16:54:12 -05:00
hisi_sas_v1_hw.c scsi: hisi_sas: add PHY set linkrate support for v1 and v2 hw 2016-11-25 09:54:40 -05:00
hisi_sas_v2_hw.c scsi: hisi_sas: shift vs compare typos 2016-11-29 11:27:54 -05:00
hisi_sas.h scsi: hisi_sas: add PHY set linkrate support for v1 and v2 hw 2016-11-25 09:54:40 -05:00
Kconfig hisi_sas: add dependency for HAS_IOMEM 2016-01-26 21:17:59 -05:00
Makefile hisi_sas: add bare v2 hw driver 2016-02-23 21:27:02 -05:00