Files
linux/drivers/edac
Andrew Morton a322f9a079 amd64_edac:__amd64_set_scrub_rate(): avoid overindexing scrubrates[]
commit 168bfeef7b upstream.

If none of the elements in scrubrates[] matches, this loop will cause
__amd64_set_scrub_rate() to incorrectly use the n+1th element.

As the function is designed to use the final scrubrates[] element in the
case of no match, we can fix this bug by simply terminating the array
search at the n-1th element.

Boris: this code is fragile anyway, see here why:
http://marc.info/?l=linux-kernel&m=135102834131236&w=2

It will be rewritten more robustly soonish.

Reported-by: Denis Kirjanov <kirjanov@gmail.com>
Cc: Doug Thompson <dougthompson@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-10-28 10:02:12 -07:00
..
2011-04-19 00:23:22 +02:00
2011-04-19 00:23:22 +02:00
2011-04-19 00:23:22 +02:00
2011-04-19 00:23:22 +02:00
2011-04-19 00:23:22 +02:00
2011-03-31 11:26:23 -03:00
2010-05-10 11:44:50 -03:00
2011-04-19 00:23:22 +02:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-04-19 00:23:22 +02:00
2011-04-19 00:23:22 +02:00
2011-04-19 00:23:22 +02:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-17 14:46:26 +01:00
2011-03-17 14:46:19 +01:00
2011-04-19 00:23:22 +02:00
2011-04-19 00:23:22 +02:00
2009-04-02 19:05:03 -07:00