Message ID | 55f301bf8a5dfdb03221950c1e9771bec870f2f9.1724076727.git.juerg.haefliger@canonical.com |
---|---|
State | New |
Headers | show |
Series | CVE-2022-48791 | expand |
diff --git a/drivers/scsi/pm8001/pm8001_sas.c b/drivers/scsi/pm8001/pm8001_sas.c index 25cf9db45d54..cb573061164b 100644 --- a/drivers/scsi/pm8001/pm8001_sas.c +++ b/drivers/scsi/pm8001/pm8001_sas.c @@ -751,9 +751,14 @@ static int pm8001_exec_internal_tmf_task(struct domain_device *dev, res = -TMF_RESP_FUNC_FAILED; /* Even TMF timed out, return direct. */ if (task->task_state_flags & SAS_TASK_STATE_ABORTED) { + struct pm8001_ccb_info *ccb = task->lldd_task; + PM8001_FAIL_DBG(pm8001_ha, pm8001_printk("TMF task[%x]timeout.\n", tmf->tmf)); + + if (ccb) + ccb->task = NULL; goto ex_err; }