浏览代码

[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>
Andrew Vasquez 17 年之前
父节点
当前提交
e792121ec8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/scsi/qla2xxx/qla_dbg.c

+ 1 - 1
drivers/scsi/qla2xxx/qla_dbg.c

@@ -216,7 +216,7 @@ qla24xx_soft_reset(scsi_qla_host_t *ha)
 
 
 static int
 static int
 qla2xxx_dump_ram(scsi_qla_host_t *ha, uint32_t addr, uint16_t *ram,
 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;
 	int rval;
 	uint32_t cnt, stat, timer, words, idx;
 	uint32_t cnt, stat, timer, words, idx;