Commit f261f7af authored by Chad Dupuis's avatar Chad Dupuis Committed by Christoph Hellwig

qla2xxx: Fail adapter initialization on load ram failure.

If we fail to load one of the segments of firmware fail the operation
instead of trying to continue which will lead to a system crash since
the pointers to the next segment will not be updated correctly.
Signed-off-by: default avatarChad Dupuis <chad.dupuis@qlogic.com>
Signed-off-by: default avatarSaurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 61d41f61
...@@ -5236,7 +5236,7 @@ qla24xx_load_risc_flash(scsi_qla_host_t *vha, uint32_t *srisc_addr, ...@@ -5236,7 +5236,7 @@ qla24xx_load_risc_flash(scsi_qla_host_t *vha, uint32_t *srisc_addr,
ql_log(ql_log_fatal, vha, 0x008f, ql_log(ql_log_fatal, vha, 0x008f,
"Failed to load segment %d of firmware.\n", "Failed to load segment %d of firmware.\n",
fragment); fragment);
break; return QLA_FUNCTION_FAILED;
} }
faddr += dlen; faddr += dlen;
...@@ -5539,7 +5539,7 @@ qla24xx_load_risc_blob(scsi_qla_host_t *vha, uint32_t *srisc_addr) ...@@ -5539,7 +5539,7 @@ qla24xx_load_risc_blob(scsi_qla_host_t *vha, uint32_t *srisc_addr)
ql_log(ql_log_fatal, vha, 0x0098, ql_log(ql_log_fatal, vha, 0x0098,
"Failed to load segment %d of firmware.\n", "Failed to load segment %d of firmware.\n",
fragment); fragment);
break; return QLA_FUNCTION_FAILED;
} }
fwcode += dlen; fwcode += dlen;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment