diff options
author | Andrew Vasquez <andrew.vasquez@qlogic.com> | 2008-07-10 19:56:01 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-07-26 15:14:46 -0400 |
commit | 42e421b184967c8bc70d72eed8e1b179e9a51acb (patch) | |
tree | 6176b464c6aae4010c227921832372a59c259da2 /drivers/scsi/qla2xxx/qla_mbx.c | |
parent | e792121ec85672c1fa48f79d13986a3f4f56c590 (diff) |
[SCSI] qla2xxx: Verify the RISC is not in ROM code if firmware-load is disabled.
Add an additional check to verify that the current executing
firmware is in fact non-ROM code. The non-ROM Get-ID mailbox
command is used for verification.
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_mbx.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_mbx.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_mbx.c b/drivers/scsi/qla2xxx/qla_mbx.c index dc5788bbc549..7d7de592f720 100644 --- a/drivers/scsi/qla2xxx/qla_mbx.c +++ b/drivers/scsi/qla2xxx/qla_mbx.c | |||
@@ -919,6 +919,8 @@ qla2x00_get_adapter_id(scsi_qla_host_t *ha, uint16_t *id, uint8_t *al_pa, | |||
919 | rval = qla2x00_mailbox_command(ha, mcp); | 919 | rval = qla2x00_mailbox_command(ha, mcp); |
920 | if (mcp->mb[0] == MBS_COMMAND_ERROR) | 920 | if (mcp->mb[0] == MBS_COMMAND_ERROR) |
921 | rval = QLA_COMMAND_ERROR; | 921 | rval = QLA_COMMAND_ERROR; |
922 | else if (mcp->mb[0] == MBS_INVALID_COMMAND) | ||
923 | rval = QLA_INVALID_COMMAND; | ||
922 | 924 | ||
923 | /* Return data. */ | 925 | /* Return data. */ |
924 | *id = mcp->mb[1]; | 926 | *id = mcp->mb[1]; |