aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx
diff options
context:
space:
mode:
authorHarish Zunjarrao <harish.zunjarrao@qlogic.com>2009-03-24 12:07:59 -0400
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2009-04-03 10:22:45 -0400
commit6315a5f810d8cf622ac9b28ace565fb2d1add911 (patch)
treed0a87e282b903d561d8911c89bf5a72e829fb6cb /drivers/scsi/qla2xxx
parent7d9dade34b72a0fe12a0ac63259b4810602736fe (diff)
[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 <harish.zunjarrao@qlogic.com> Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/qla2xxx')
-rw-r--r--drivers/scsi/qla2xxx/qla_sup.c2
1 files changed, 1 insertions, 1 deletions
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)
2518 dcode = mbuf; 2518 dcode = mbuf;
2519 2519
2520 /* Begin with first PCI expansion ROM header. */ 2520 /* Begin with first PCI expansion ROM header. */
2521 pcihdr = ha->flt_region_boot; 2521 pcihdr = ha->flt_region_boot << 2;
2522 last_image = 1; 2522 last_image = 1;
2523 do { 2523 do {
2524 /* Verify PCI expansion ROM header. */ 2524 /* Verify PCI expansion ROM header. */