[SCSI] qla2xxx: Correct overflow during dump-processing on large-memory ISP23xx parts.
authorAndrew Vasquez <andrew.vasquez@qlogic.com>
Thu, 10 Jul 2008 23:56:00 +0000 (16:56 -0700)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sat, 26 Jul 2008 19:14:46 +0000 (15:14 -0400)
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>
drivers/scsi/qla2xxx/qla_dbg.c

index cbef785765cf2ead72b64899a260a75bfca849d2..510ba64bc286e185cd85346c5728761bc09d7fa5 100644 (file)
@@ -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;