diff options
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_hbadisc.c')
| -rw-r--r-- | drivers/scsi/lpfc/lpfc_hbadisc.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/scsi/lpfc/lpfc_hbadisc.c b/drivers/scsi/lpfc/lpfc_hbadisc.c index 8d491084eb5d..2bafde2b7cfe 100644 --- a/drivers/scsi/lpfc/lpfc_hbadisc.c +++ b/drivers/scsi/lpfc/lpfc_hbadisc.c | |||
| @@ -3324,7 +3324,8 @@ lpfc_mbx_cmpl_read_topology(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmb) | |||
| 3324 | 3324 | ||
| 3325 | /* Unblock ELS traffic */ | 3325 | /* Unblock ELS traffic */ |
| 3326 | pring = lpfc_phba_elsring(phba); | 3326 | pring = lpfc_phba_elsring(phba); |
| 3327 | pring->flag &= ~LPFC_STOP_IOCB_EVENT; | 3327 | if (pring) |
| 3328 | pring->flag &= ~LPFC_STOP_IOCB_EVENT; | ||
| 3328 | 3329 | ||
| 3329 | /* Check for error */ | 3330 | /* Check for error */ |
| 3330 | if (mb->mbxStatus) { | 3331 | if (mb->mbxStatus) { |
| @@ -4981,7 +4982,8 @@ lpfc_nlp_remove(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp) | |||
| 4981 | lpfc_cancel_retry_delay_tmo(vport, ndlp); | 4982 | lpfc_cancel_retry_delay_tmo(vport, ndlp); |
| 4982 | if ((ndlp->nlp_flag & NLP_DEFER_RM) && | 4983 | if ((ndlp->nlp_flag & NLP_DEFER_RM) && |
| 4983 | !(ndlp->nlp_flag & NLP_REG_LOGIN_SEND) && | 4984 | !(ndlp->nlp_flag & NLP_REG_LOGIN_SEND) && |
| 4984 | !(ndlp->nlp_flag & NLP_RPI_REGISTERED)) { | 4985 | !(ndlp->nlp_flag & NLP_RPI_REGISTERED) && |
| 4986 | phba->sli_rev != LPFC_SLI_REV4) { | ||
| 4985 | /* For this case we need to cleanup the default rpi | 4987 | /* For this case we need to cleanup the default rpi |
| 4986 | * allocated by the firmware. | 4988 | * allocated by the firmware. |
| 4987 | */ | 4989 | */ |
| @@ -5429,6 +5431,8 @@ lpfc_free_tx(struct lpfc_hba *phba, struct lpfc_nodelist *ndlp) | |||
| 5429 | 5431 | ||
| 5430 | psli = &phba->sli; | 5432 | psli = &phba->sli; |
| 5431 | pring = lpfc_phba_elsring(phba); | 5433 | pring = lpfc_phba_elsring(phba); |
| 5434 | if (unlikely(!pring)) | ||
| 5435 | return; | ||
| 5432 | 5436 | ||
| 5433 | /* Error matching iocb on txq or txcmplq | 5437 | /* Error matching iocb on txq or txcmplq |
| 5434 | * First check the txq. | 5438 | * First check the txq. |
