diff options
author | Andrew Vasquez <andrew.vasquez@qlogic.com> | 2008-07-11 01:56:00 +0200 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-07-26 21:14:46 +0200 |
commit | e792121ec85672c1fa48f79d13986a3f4f56c590 (patch) | |
tree | af0361a3ba1146720c76dff3862d6647d8aa517b /drivers/scsi/qla2xxx/qla_dbg.c | |
parent | [SCSI] qla2xxx: Skip FDMI registration on ISP21xx/22xx parts. (diff) | |
download | linux-e792121ec85672c1fa48f79d13986a3f4f56c590.tar.xz linux-e792121ec85672c1fa48f79d13986a3f4f56c590.zip |
[SCSI] qla2xxx: Correct overflow during dump-processing on large-memory ISP23xx parts.
Total ram words can exceed a 16bit value on large-memory boards.
Safely extend to a 32bit width.
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_dbg.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_dbg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_dbg.c b/drivers/scsi/qla2xxx/qla_dbg.c index cbef785765cf..510ba64bc286 100644 --- a/drivers/scsi/qla2xxx/qla_dbg.c +++ b/drivers/scsi/qla2xxx/qla_dbg.c @@ -216,7 +216,7 @@ qla24xx_soft_reset(scsi_qla_host_t *ha) static int qla2xxx_dump_ram(scsi_qla_host_t *ha, uint32_t addr, uint16_t *ram, - uint16_t ram_words, void **nxt) + uint32_t ram_words, void **nxt) { int rval; uint32_t cnt, stat, timer, words, idx; |