aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2012-10-23 14:09:39 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-10-28 10:02:12 -0700
commita322f9a0799883553a0898c7062a944ff64a3056 (patch)
tree87863d7901ea1754290b39324e88f65c6b5a185d /mm
parentf0c76f5fa97e436cf24cb57a4aeceb7c83835704 (diff)
downloadkernel_samsung_tuna-a322f9a0799883553a0898c7062a944ff64a3056.zip
kernel_samsung_tuna-a322f9a0799883553a0898c7062a944ff64a3056.tar.gz
kernel_samsung_tuna-a322f9a0799883553a0898c7062a944ff64a3056.tar.bz2
amd64_edac:__amd64_set_scrub_rate(): avoid overindexing scrubrates[]
commit 168bfeef7bba3f9784f7540b053e4ac72b769ce9 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>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions