[SCSI] qla2xxx: Use byte-address while reading FC boot code versions from flash.
authorHarish Zunjarrao <harish.zunjarrao@qlogic.com>
Tue, 24 Mar 2009 16:07:59 +0000 (09:07 -0700)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Fri, 3 Apr 2009 14:22:45 +0000 (09:22 -0500)
The pcihdr variable is used to find valid boot code image to get
FC boot code versions from flash. The pcihdr variable should be
byte aligned.

Signed-off-by: Harish Zunjarrao <harish.zunjarrao@qlogic.com>
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/qla2xxx/qla_sup.c

index 284827926effc096155dd3e755a2348fb03631d6..5b24af86aaf06cfedb0610c9294a0e0d6aa86adf 100644 (file)
@@ -2518,7 +2518,7 @@ qla24xx_get_flash_version(scsi_qla_host_t *vha, void *mbuf)
        dcode = mbuf;
 
        /* Begin with first PCI expansion ROM header. */
-       pcihdr = ha->flt_region_boot;
+       pcihdr = ha->flt_region_boot << 2;
        last_image = 1;
        do {
                /* Verify PCI expansion ROM header. */
This page took 0.028801 seconds and 5 git commands to generate.