scsi: hisi_sas: error hisi_sas_task_prep() when port down
authorJohn Garry <john.garry@huawei.com>
Wed, 22 Mar 2017 17:25:22 +0000 (01:25 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 23 Mar 2017 15:12:01 +0000 (11:12 -0400)
commitddabca216c7fb1af8e4edde9fc981992e26e50fc
treefdc780878bf6863bfbbeb2ee4592c0491d34fccb
parent405314df566c6168715413db682adeba297fd684
scsi: hisi_sas: error hisi_sas_task_prep() when port down

When sas_port is NULL, then return SAS_PHY_DOWN.

In addition, when the sas_dev is gone then explicitly return
SAS_PHY_DOWN.

Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas_main.c