aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc_els.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_els.c')
-rw-r--r--drivers/scsi/lpfc/lpfc_els.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/drivers/scsi/lpfc/lpfc_els.c b/drivers/scsi/lpfc/lpfc_els.c
index 14266dfb35db..4d9e7f50c189 100644
--- a/drivers/scsi/lpfc/lpfc_els.c
+++ b/drivers/scsi/lpfc/lpfc_els.c
@@ -3214,7 +3214,7 @@ lpfc_els_timeout_handler(struct lpfc_hba *phba)
3214 IOCB_t *cmd = NULL; 3214 IOCB_t *cmd = NULL;
3215 struct lpfc_dmabuf *pcmd; 3215 struct lpfc_dmabuf *pcmd;
3216 uint32_t *elscmd; 3216 uint32_t *elscmd;
3217 uint32_t els_command; 3217 uint32_t els_command=0;
3218 uint32_t timeout; 3218 uint32_t timeout;
3219 uint32_t remote_ID; 3219 uint32_t remote_ID;
3220 3220
@@ -3233,12 +3233,16 @@ lpfc_els_timeout_handler(struct lpfc_hba *phba)
3233 list_for_each_entry_safe(piocb, tmp_iocb, &pring->txcmplq, list) { 3233 list_for_each_entry_safe(piocb, tmp_iocb, &pring->txcmplq, list) {
3234 cmd = &piocb->iocb; 3234 cmd = &piocb->iocb;
3235 3235
3236 if (piocb->iocb_flag & LPFC_IO_LIBDFC) { 3236 if ((piocb->iocb_flag & LPFC_IO_LIBDFC) ||
3237 (piocb->iocb.ulpCommand == CMD_ABORT_XRI_CN) ||
3238 (piocb->iocb.ulpCommand == CMD_CLOSE_XRI_CN)) {
3237 continue; 3239 continue;
3238 } 3240 }
3239 pcmd = (struct lpfc_dmabuf *) piocb->context2; 3241 pcmd = (struct lpfc_dmabuf *) piocb->context2;
3240 elscmd = (uint32_t *) (pcmd->virt); 3242 if (pcmd) {
3241 els_command = *elscmd; 3243 elscmd = (uint32_t *) (pcmd->virt);
3244 els_command = *elscmd;
3245 }
3242 3246
3243 if ((els_command == ELS_CMD_FARP) 3247 if ((els_command == ELS_CMD_FARP)
3244 || (els_command == ELS_CMD_FARPR)) { 3248 || (els_command == ELS_CMD_FARPR)) {