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

Rather than returning stale mailbox values.

Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
This commit is contained in:
Andrew Vasquez 2012-11-21 02:40:26 -05:00 коммит произвёл James Bottomley
Родитель 25852400cc
Коммит 5b93903844
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -1971,6 +1971,7 @@ qla2x00_fw_ready(scsi_qla_host_t *vha)
"Waiting for LIP to complete.\n");
do {
memset(state, -1, sizeof(state));
rval = qla2x00_get_firmware_state(vha, state);
if (rval == QLA_SUCCESS) {
if (state[0] < FSTATE_LOSS_OF_SYNC) {