提交 5b939038 编写于 作者: A Andrew Vasquez 提交者: James Bottomley

[SCSI] qla2xxx: Clear unsupported 'states' during Get-FW-State queries.

Rather than returning stale mailbox values.
Signed-off-by: NAndrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: NSaurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
上级 25852400
...@@ -1971,6 +1971,7 @@ qla2x00_fw_ready(scsi_qla_host_t *vha) ...@@ -1971,6 +1971,7 @@ qla2x00_fw_ready(scsi_qla_host_t *vha)
"Waiting for LIP to complete.\n"); "Waiting for LIP to complete.\n");
do { do {
memset(state, -1, sizeof(state));
rval = qla2x00_get_firmware_state(vha, state); rval = qla2x00_get_firmware_state(vha, state);
if (rval == QLA_SUCCESS) { if (rval == QLA_SUCCESS) {
if (state[0] < FSTATE_LOSS_OF_SYNC) { if (state[0] < FSTATE_LOSS_OF_SYNC) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册