[SCSI] qla2xxx: Clear EFT buffer before firmware reinitialization.
authorAndrew Vasquez <andrew.vasquez@qlogic.com>
Thu, 31 Jan 2008 20:33:47 +0000 (12:33 -0800)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Fri, 8 Feb 2008 00:02:39 +0000 (18:02 -0600)
To insure that there is no stale data present during EFT
re-registration.

Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/qla2xxx/qla_init.c

index 2e51fa8a70f8f76b5955c54ccf95b2f95f6c8249..97063cba6788587ec51871b7d552dc050cbcf322 100644 (file)
@@ -3259,6 +3259,7 @@ qla2x00_abort_isp(scsi_qla_host_t *ha)
                        clear_bit(ISP_ABORT_RETRY, &ha->dpc_flags);
 
                        if (ha->eft) {
+                               memset(ha->eft, 0, EFT_SIZE);
                                rval = qla2x00_enable_eft_trace(ha,
                                    ha->eft_dma, EFT_NUM_BUFFERS);
                                if (rval) {