aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/scsi/qla2xxx/qla_init.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c
index cacf2ccc081b..4efc25700e99 100644
--- a/drivers/scsi/qla2xxx/qla_init.c
+++ b/drivers/scsi/qla2xxx/qla_init.c
@@ -1157,8 +1157,9 @@ int qla24xx_fcport_handle_login(struct scsi_qla_host *vha, fc_port_t *fcport)
1157 if (fcport->scan_state != QLA_FCPORT_FOUND) 1157 if (fcport->scan_state != QLA_FCPORT_FOUND)
1158 return 0; 1158 return 0;
1159 1159
1160 if ((fcport->fw_login_state == DSC_LS_PLOGI_PEND) || 1160 if ((fcport->loop_id != FC_NO_LOOP_ID) &&
1161 (fcport->fw_login_state == DSC_LS_PRLI_PEND)) 1161 ((fcport->fw_login_state == DSC_LS_PLOGI_PEND) ||
1162 (fcport->fw_login_state == DSC_LS_PRLI_PEND)))
1162 return 0; 1163 return 0;
1163 1164
1164 if (fcport->fw_login_state == DSC_LS_PLOGI_COMP) { 1165 if (fcport->fw_login_state == DSC_LS_PLOGI_COMP) {