Skip to content

Commit

Permalink
qla1280: Fix off-by-some error in firmware loading.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Apr 8, 2009
1 parent 0f8e5c2 commit 0ce49d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/scsi/qla1280.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 0ce49d6

Please sign in to comment.