diff options
author | Andrew Vasquez <andrew.vasquez@qlogic.com> | 2012-11-21 11:40:26 +0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-11-30 13:40:59 +0400 |
commit | 5b939038443fdb3db3591b8e92469641f49d12c4 (patch) | |
tree | 48fc7b5de48d4b2a321000f146224370d1551dcc /drivers/scsi | |
parent | 25852400ccb5d7e35904cc3d270be741784ec22e (diff) | |
download | linux-5b939038443fdb3db3591b8e92469641f49d12c4.tar.xz |
[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')
-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) "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) { |