[SCSI] qla2xxx: Clear unsupported 'states' during Get-FW-State queries.
authorAndrew Vasquez <andrew.vasquez@qlogic.com>
Wed, 21 Nov 2012 07:40:26 +0000 (02:40 -0500)
committerJames Bottomley <JBottomley@Parallels.com>
Fri, 30 Nov 2012 09:40:59 +0000 (09:40 +0000)
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>
drivers/scsi/qla2xxx/qla_init.c

index 48fca47384b745894e0a8a853c8fc937daa196df..214c0e9bdcdf2317ba457a8464530c81d56440a6 100644 (file)
@@ -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) {