summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/hisi_sas
diff options
context:
space:
mode:
authorXiang Chen <chenxiang66@hisilicon.com>2017-10-24 23:51:32 +0800
committerMartin K. Petersen <martin.petersen@oracle.com>2017-10-25 08:21:04 -0400
commitf692a677e2cb0ccab4ef91be97d8fb020cca246d (patch)
tree23678b72fc249b2738d7449a1c74cc18b45f426e /drivers/scsi/hisi_sas
parent8ae6725dca51b0cc97ce85317d8da45d77f1e8bb (diff)
downloadop-kernel-dev-f692a677e2cb0ccab4ef91be97d8fb020cca246d.zip
op-kernel-dev-f692a677e2cb0ccab4ef91be97d8fb020cca246d.tar.gz
scsi: hisi_sas: fix internal abort slot timeout bug
When an internal abort times out in hisi_sas_internal_task_abort(), goto the exit label in and not go through the other task status checks. 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>
Diffstat (limited to 'drivers/scsi/hisi_sas')
-rw-r--r--drivers/scsi/hisi_sas/hisi_sas_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/hisi_sas/hisi_sas_main.c b/drivers/scsi/hisi_sas/hisi_sas_main.c
index 9e29902..0eb9174 100644
--- a/drivers/scsi/hisi_sas/hisi_sas_main.c
+++ b/drivers/scsi/hisi_sas/hisi_sas_main.c
@@ -1469,6 +1469,7 @@ hisi_sas_internal_task_abort(struct hisi_hba *hisi_hba,
if (slot)
slot->task = NULL;
dev_err(dev, "internal task abort: timeout.\n");
+ goto exit;
}
}
OpenPOWER on IntegriCloud