]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
scsi: hisi_sas: fail tmf task prep when port detached
authorJohn Garry <john.garry@huawei.com>
Wed, 24 Aug 2016 11:05:52 +0000 (19:05 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 26 Aug 2016 02:38:54 +0000 (22:38 -0400)
commit9859f24e9a25fc774c4d960568f12bdd634e00ca
tree8a15d35f0dece743dadeac3e7de7f2e7afb3c2d2
parentdf032d0e4dbe2597dfa3f60c06b1c260e3870a3d
scsi: hisi_sas: fail tmf task prep when port detached

When the port is detached we cannot execute a TMF, as there can be no
device attached to the port.

Signed-off-by: John Garry <john.garry@huawei.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas_main.c