[1/5,Bionic] scsi: hisi_sas: fix internal abort slot timeout bug

Message ID 20171222215040.29959-2-dann.frazier@canonical.com
State New
Headers show
  • hisi_sas: driver robustness fixes
Related show

Commit Message

dann frazier Dec. 22, 2017, 9:50 p.m.
From: Xiang Chen <chenxiang66@hisilicon.com>

BugLink: https://bugs.launchpad.net/bugs/1739807

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

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>
(cherry picked from commit f692a677e2cb0ccab4ef91be97d8fb020cca246d)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
 drivers/scsi/hisi_sas/hisi_sas_main.c | 1 +
 1 file changed, 1 insertion(+)


diff --git a/drivers/scsi/hisi_sas/hisi_sas_main.c b/drivers/scsi/hisi_sas/hisi_sas_main.c
index 16664f2e15fb..709d533e0d64 100644
--- a/drivers/scsi/hisi_sas/hisi_sas_main.c
+++ b/drivers/scsi/hisi_sas/hisi_sas_main.c
@@ -1471,6 +1471,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;