mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 01:41:39 +00:00
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp
* '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
This commit is contained in:
commit
bf0c346b3f
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue