diff options
-rw-r--r-- | drivers/scsi/qla2xxx/qla_target.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_target.c index 04f80ebf09eb..c263f9016deb 100644 --- a/drivers/scsi/qla2xxx/qla_target.c +++ b/drivers/scsi/qla2xxx/qla_target.c | |||
@@ -2477,11 +2477,9 @@ static void qlt_do_ctio_completion(struct scsi_qla_host *vha, uint32_t handle, | |||
2477 | } | 2477 | } |
2478 | 2478 | ||
2479 | cmd = qlt_ctio_to_cmd(vha, handle, ctio); | 2479 | cmd = qlt_ctio_to_cmd(vha, handle, ctio); |
2480 | if (cmd == NULL) { | 2480 | if (cmd == NULL) |
2481 | if (status != CTIO_SUCCESS) | ||
2482 | qlt_term_ctio_exchange(vha, ctio, NULL, status); | ||
2483 | return; | 2481 | return; |
2484 | } | 2482 | |
2485 | se_cmd = &cmd->se_cmd; | 2483 | se_cmd = &cmd->se_cmd; |
2486 | tfo = se_cmd->se_tfo; | 2484 | tfo = se_cmd->se_tfo; |
2487 | 2485 | ||