summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc_init.c
diff options
context:
space:
mode:
authorJames Smart2014-04-04 19:51:53 +0200
committerChristoph Hellwig2014-06-02 18:28:43 +0200
commitee62021a11320e972e0218ab73a5a5196b6aa499 (patch)
tree4cbdf19748b1a5cdec6862e6dfbe60dcdf41bdd7 /drivers/scsi/lpfc/lpfc_init.c
parentlpfc: Fix locking for postbufq when freeing (diff)
downloadkernel-qcow2-linux-ee62021a11320e972e0218ab73a5a5196b6aa499.tar.gz
kernel-qcow2-linux-ee62021a11320e972e0218ab73a5a5196b6aa499.tar.xz
kernel-qcow2-linux-ee62021a11320e972e0218ab73a5a5196b6aa499.zip
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)
phba->link_state = LPFC_HBA_ERROR;
return;
}
- lpfc_offline_prep(phba, LPFC_MBX_WAIT);
+ if (phba->sli.sli_flag & LPFC_SLI_ACTIVE)
+ lpfc_offline_prep(phba, LPFC_MBX_WAIT);
+ else
+ lpfc_offline_prep(phba, LPFC_MBX_NO_WAIT);
lpfc_offline(phba);
lpfc_sli_brdrestart(phba);
lpfc_online(phba);