From 5b939038443fdb3db3591b8e92469641f49d12c4 Mon Sep 17 00:00:00 2001 From: Andrew Vasquez Date: Wed, 21 Nov 2012 02:40:26 -0500 Subject: [PATCH] [SCSI] qla2xxx: Clear unsupported 'states' during Get-FW-State queries. Rather than returning stale mailbox values. Signed-off-by: Andrew Vasquez Signed-off-by: Saurav Kashyap Signed-off-by: James Bottomley --- drivers/scsi/qla2xxx/qla_init.c | 1 + 1 file changed, 1 insertion(+) 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) { -- 2.39.5