projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7284ce6
)
amd64_edac: Ensure index stays within bounds in amd64_get_scrub_rate
author
Roel Kluin
<roel.kluin@gmail.com>
Mon, 11 Jan 2010 19:58:21 +0000
(20:58 +0100)
committer
Borislav Petkov
<borislav.petkov@amd.com>
Fri, 15 Jan 2010 09:45:58 +0000
(10:45 +0100)
Add a missing iterator variable thus fixing the conditional of the
for-loop in amd64_get_scrub_rate().
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
drivers/edac/amd64_edac.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/edac/amd64_edac.c
b/drivers/edac/amd64_edac.c
index c5facd951dda965e1c0f217b824289445c9e3165..000dc67b85b73c406c93249f539f7a90fb5158d1 100644
(file)
--- 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;