projects/linux·commit bf0c346b

Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp

bf0c346b · Linus Torvalds <[email protected]> · 2010-01-15 14:52:44 -08:00

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp:
  amd64_edac: Ensure index stays within bounds in amd64_get_scrub_rate
Commit
bf0c346b3fbfb7315c5773767f3c7210fdeacce0
Parents
3b3ef308 · 926311fd

Merge commit. Changes below are compared with the first parent: 3b3ef308.

Changes

1 files changed · +1 −1

FileStatusAddDelContent
drivers/edac/amd64_edac.cmodified+1−1View file

drivers/edac/amd64_edac.c

View file
diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c
index c5facd9..000dc67 100644
--- a/drivers/edac/amd64_edac.c
+++ b/drivers/edac/amd64_edac.c
@@ -197,7 +197,7 @@ static int amd64_get_scrub_rate(struct mem_ctl_info *mci, u32 *bw)
edac_printk(KERN_DEBUG, EDAC_MC,
"pci-read, sdram scrub control value: %d \n", scrubval);
- for (i = 0; ARRAY_SIZE(scrubrates); i++) {
+ for (i = 0; i < ARRAY_SIZE(scrubrates); i++) {
if (scrubrates[i].scrubval == scrubval) {
*bw = scrubrates[i].bandwidth;
status = 0;