diff options
author | James Smart <james.smart@emulex.com> | 2013-07-15 18:31:42 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-08-23 13:13:52 -0400 |
commit | 5a0916b4d207a4f827a972ff599c0fc9d79d5a8d (patch) | |
tree | 0d77ae0e785abed19766dc64528c5b92513f8b7c /drivers/scsi/lpfc/lpfc_scsi.c | |
parent | b56a15d1467698652c65e7bb4094fe728f4a7324 (diff) |
[SCSI] lpfc 8.3.41: Fixed freeing of iocb when internal loopback times out
Signed-off-by: James Smart <james.smart@emulex.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_scsi.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_scsi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/lpfc/lpfc_scsi.c b/drivers/scsi/lpfc/lpfc_scsi.c index 243de1d324b7..76a583afe427 100644 --- a/drivers/scsi/lpfc/lpfc_scsi.c +++ b/drivers/scsi/lpfc/lpfc_scsi.c | |||
@@ -5022,6 +5022,7 @@ lpfc_send_taskmgmt(struct lpfc_vport *vport, struct lpfc_rport_data *rdata, | |||
5022 | lpfc_release_scsi_buf(phba, lpfc_cmd); | 5022 | lpfc_release_scsi_buf(phba, lpfc_cmd); |
5023 | return FAILED; | 5023 | return FAILED; |
5024 | } | 5024 | } |
5025 | iocbq->iocb_cmpl = lpfc_tskmgmt_def_cmpl; | ||
5025 | 5026 | ||
5026 | lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP, | 5027 | lpfc_printf_vlog(vport, KERN_INFO, LOG_FCP, |
5027 | "0702 Issue %s to TGT %d LUN %d " | 5028 | "0702 Issue %s to TGT %d LUN %d " |
@@ -5034,7 +5035,6 @@ lpfc_send_taskmgmt(struct lpfc_vport *vport, struct lpfc_rport_data *rdata, | |||
5034 | iocbq, iocbqrsp, lpfc_cmd->timeout); | 5035 | iocbq, iocbqrsp, lpfc_cmd->timeout); |
5035 | if (status != IOCB_SUCCESS) { | 5036 | if (status != IOCB_SUCCESS) { |
5036 | if (status == IOCB_TIMEDOUT) { | 5037 | if (status == IOCB_TIMEDOUT) { |
5037 | iocbq->iocb_cmpl = lpfc_tskmgmt_def_cmpl; | ||
5038 | ret = TIMEOUT_ERROR; | 5038 | ret = TIMEOUT_ERROR; |
5039 | } else | 5039 | } else |
5040 | ret = FAILED; | 5040 | ret = FAILED; |