aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc_init.c
diff options
context:
space:
mode:
authorJames Smart <james.smart@emulex.com>2014-04-04 13:51:53 -0400
committerChristoph Hellwig <hch@lst.de>2014-06-02 12:28:43 -0400
commitee62021a11320e972e0218ab73a5a5196b6aa499 (patch)
tree4cbdf19748b1a5cdec6862e6dfbe60dcdf41bdd7 /drivers/scsi/lpfc/lpfc_init.c
parent07eab624e5cf471450ed7b8c4ba8521e910dc9cf (diff)
lpfc: Fixed kernel panic in lpfc_abort_handler
Fixed kernel panic in lpfc_abort_handler Signed-off-by: James Smart <james.smart@emulex.com> Reviewed-By: Dick Kennedy <dick.kennedy@emulex.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_init.c')
-rw-r--r--drivers/scsi/lpfc/lpfc_init.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c
index 512f91ed5d25..9f3efdb9e833 100644
--- a/drivers/scsi/lpfc/lpfc_init.c
+++ b/drivers/scsi/lpfc/lpfc_init.c
@@ -4664,7 +4664,10 @@ lpfc_reset_hba(struct lpfc_hba *phba)
4664 phba->link_state = LPFC_HBA_ERROR; 4664 phba->link_state = LPFC_HBA_ERROR;
4665 return; 4665 return;
4666 } 4666 }
4667 lpfc_offline_prep(phba, LPFC_MBX_WAIT); 4667 if (phba->sli.sli_flag & LPFC_SLI_ACTIVE)
4668 lpfc_offline_prep(phba, LPFC_MBX_WAIT);
4669 else
4670 lpfc_offline_prep(phba, LPFC_MBX_NO_WAIT);
4668 lpfc_offline(phba); 4671 lpfc_offline(phba);
4669 lpfc_sli_brdrestart(phba); 4672 lpfc_sli_brdrestart(phba);
4670 lpfc_online(phba); 4673 lpfc_online(phba);