diff options
author | Andrew Vasquez <andrew.vasquez@qlogic.com> | 2012-11-21 02:40:26 -0500 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-11-30 04:40:59 -0500 |
commit | 5b939038443fdb3db3591b8e92469641f49d12c4 (patch) | |
tree | 48fc7b5de48d4b2a321000f146224370d1551dcc /drivers/scsi/qla2xxx/qla_init.c | |
parent | 25852400ccb5d7e35904cc3d270be741784ec22e (diff) |
[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>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_init.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_init.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index 48fca47384b7..214c0e9bdcdf 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c | |||
@@ -1971,6 +1971,7 @@ qla2x00_fw_ready(scsi_qla_host_t *vha) | |||
1971 | "Waiting for LIP to complete.\n"); | 1971 | "Waiting for LIP to complete.\n"); |
1972 | 1972 | ||
1973 | do { | 1973 | do { |
1974 | memset(state, -1, sizeof(state)); | ||
1974 | rval = qla2x00_get_firmware_state(vha, state); | 1975 | rval = qla2x00_get_firmware_state(vha, state); |
1975 | if (rval == QLA_SUCCESS) { | 1976 | if (rval == QLA_SUCCESS) { |
1976 | if (state[0] < FSTATE_LOSS_OF_SYNC) { | 1977 | if (state[0] < FSTATE_LOSS_OF_SYNC) { |