From: Harish Zunjarrao Date: Tue, 24 Mar 2009 16:07:59 +0000 (-0700) Subject: [SCSI] qla2xxx: Use byte-address while reading FC boot code versions from flash. X-Git-Tag: firefly_0821_release~14760^2~64 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6315a5f810d8cf622ac9b28ace565fb2d1add911;p=firefly-linux-kernel-4.4.55.git [SCSI] qla2xxx: Use byte-address while reading FC boot code versions from flash. 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 Signed-off-by: Andrew Vasquez Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/qla2xxx/qla_sup.c b/drivers/scsi/qla2xxx/qla_sup.c index 284827926eff..5b24af86aaf0 100644 --- a/drivers/scsi/qla2xxx/qla_sup.c +++ b/drivers/scsi/qla2xxx/qla_sup.c @@ -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. */