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: Chad Dupuis <chad.dupuis@qlogic.com> Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
parent
61d41f610d
commit
f261f7aff7
@ -5236,7 +5236,7 @@ qla24xx_load_risc_flash(scsi_qla_host_t *vha, uint32_t *srisc_addr,
|
||||
ql_log(ql_log_fatal, vha, 0x008f,
|
||||
"Failed to load segment %d of firmware.\n",
|
||||
fragment);
|
||||
break;
|
||||
return QLA_FUNCTION_FAILED;
|
||||
}
|
||||
|
||||
faddr += dlen;
|
||||
@ -5539,7 +5539,7 @@ qla24xx_load_risc_blob(scsi_qla_host_t *vha, uint32_t *srisc_addr)
|
||||
ql_log(ql_log_fatal, vha, 0x0098,
|
||||
"Failed to load segment %d of firmware.\n",
|
||||
fragment);
|
||||
break;
|
||||
return QLA_FUNCTION_FAILED;
|
||||
}
|
||||
|
||||
fwcode += dlen;
|
||||
|
Loading…
Reference in New Issue
Block a user