浏览代码

[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>
Harish Zunjarrao 16 年之前
父节点
当前提交
6315a5f810
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/scsi/qla2xxx/qla_sup.c

+ 1 - 1
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. */