]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
qla1280: Fix off-by-some error in firmware loading.
authorDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 8 Apr 2009 08:22:36 +0000 (01:22 -0700)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 8 Apr 2009 08:23:35 +0000 (01:23 -0700)
We were calculating the wrong address for the start of the data.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Tested-by: Jeremy Higdon <jeremy@sgi.com>
drivers/scsi/qla1280.c

index 351b56ced925f8476a71d839a4ba48fb3836f196..d030db93d55bd82848af2c0fb7ca4d9feb6ef6d2 100644 (file)
@@ -1663,7 +1663,7 @@ qla1280_load_firmware_pio(struct scsi_qla_host *ha)
 
        /* Load RISC code. */
        risc_address = ha->fwstart;
-       fw_data = (const __le16 *)&fw->data[4];
+       fw_data = (const __le16 *)&fw->data[6];
        risc_code_size = (fw->size - 6) / 2;
 
        for (i = 0; i < risc_code_size; i++) {
@@ -1722,7 +1722,7 @@ qla1280_load_firmware_dma(struct scsi_qla_host *ha)
 
        /* Load RISC code. */
        risc_address = ha->fwstart;
-       fw_data = (const __le16 *)&fw->data[4];
+       fw_data = (const __le16 *)&fw->data[6];
        risc_code_size = (fw->size - 6) / 2;
 
        dprintk(1, "%s: DMA RISC code (%i) words\n",