diff options
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_els.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_els.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/lpfc/lpfc_els.c b/drivers/scsi/lpfc/lpfc_els.c index 9508661fe825..1de60ce6f296 100644 --- a/drivers/scsi/lpfc/lpfc_els.c +++ b/drivers/scsi/lpfc/lpfc_els.c | |||
@@ -5370,7 +5370,7 @@ lpfc_send_els_failure_event(struct lpfc_hba *phba, | |||
5370 | sizeof(struct lpfc_name)); | 5370 | sizeof(struct lpfc_name)); |
5371 | pcmd = (uint32_t *) (((struct lpfc_dmabuf *) | 5371 | pcmd = (uint32_t *) (((struct lpfc_dmabuf *) |
5372 | cmdiocbp->context2)->virt); | 5372 | cmdiocbp->context2)->virt); |
5373 | lsrjt_event.command = *pcmd; | 5373 | lsrjt_event.command = (pcmd != NULL) ? *pcmd : 0; |
5374 | stat.un.lsRjtError = be32_to_cpu(rspiocbp->iocb.un.ulpWord[4]); | 5374 | stat.un.lsRjtError = be32_to_cpu(rspiocbp->iocb.un.ulpWord[4]); |
5375 | lsrjt_event.reason_code = stat.un.b.lsRjtRsnCode; | 5375 | lsrjt_event.reason_code = stat.un.b.lsRjtRsnCode; |
5376 | lsrjt_event.explanation = stat.un.b.lsRjtRsnCodeExp; | 5376 | lsrjt_event.explanation = stat.un.b.lsRjtRsnCodeExp; |