diff options
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_nportdisc.c')
| -rw-r--r-- | drivers/scsi/lpfc/lpfc_nportdisc.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/scsi/lpfc/lpfc_nportdisc.c b/drivers/scsi/lpfc/lpfc_nportdisc.c index bff3de053df4..f74cb0142fd4 100644 --- a/drivers/scsi/lpfc/lpfc_nportdisc.c +++ b/drivers/scsi/lpfc/lpfc_nportdisc.c | |||
| @@ -206,7 +206,7 @@ lpfc_check_elscmpl_iocb(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb, | |||
| 206 | * associated with a LPFC_NODELIST entry. This | 206 | * associated with a LPFC_NODELIST entry. This |
| 207 | * routine effectively results in a "software abort". | 207 | * routine effectively results in a "software abort". |
| 208 | */ | 208 | */ |
| 209 | int | 209 | void |
| 210 | lpfc_els_abort(struct lpfc_hba *phba, struct lpfc_nodelist *ndlp) | 210 | lpfc_els_abort(struct lpfc_hba *phba, struct lpfc_nodelist *ndlp) |
| 211 | { | 211 | { |
| 212 | LIST_HEAD(abort_list); | 212 | LIST_HEAD(abort_list); |
| @@ -215,6 +215,10 @@ lpfc_els_abort(struct lpfc_hba *phba, struct lpfc_nodelist *ndlp) | |||
| 215 | 215 | ||
| 216 | pring = lpfc_phba_elsring(phba); | 216 | pring = lpfc_phba_elsring(phba); |
| 217 | 217 | ||
| 218 | /* In case of error recovery path, we might have a NULL pring here */ | ||
| 219 | if (!pring) | ||
| 220 | return; | ||
| 221 | |||
| 218 | /* Abort outstanding I/O on NPort <nlp_DID> */ | 222 | /* Abort outstanding I/O on NPort <nlp_DID> */ |
| 219 | lpfc_printf_vlog(ndlp->vport, KERN_INFO, LOG_DISCOVERY, | 223 | lpfc_printf_vlog(ndlp->vport, KERN_INFO, LOG_DISCOVERY, |
| 220 | "2819 Abort outstanding I/O on NPort x%x " | 224 | "2819 Abort outstanding I/O on NPort x%x " |
| @@ -273,7 +277,6 @@ lpfc_els_abort(struct lpfc_hba *phba, struct lpfc_nodelist *ndlp) | |||
| 273 | IOSTAT_LOCAL_REJECT, IOERR_SLI_ABORTED); | 277 | IOSTAT_LOCAL_REJECT, IOERR_SLI_ABORTED); |
| 274 | 278 | ||
| 275 | lpfc_cancel_retry_delay_tmo(phba->pport, ndlp); | 279 | lpfc_cancel_retry_delay_tmo(phba->pport, ndlp); |
| 276 | return 0; | ||
| 277 | } | 280 | } |
| 278 | 281 | ||
| 279 | static int | 282 | static int |
