powerpc/oprofile: fix potential buffer overrun in op_model_cell.c
commit63592befd6212caabbe5f9517f64049d55ec67fb
authorDenis Kirjanov <dkirjanov@hera.kernel.org>
Tue, 1 Jun 2010 19:43:34 +0000 (1 15:43 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Jul 2010 18:10:44 +0000 (5 11:10 -0700)
treefe93d31366b13119c00305571ca53e5733069041
parent9cb49fbe22c79ee0fe111cef69e2485c269dd7ea
powerpc/oprofile: fix potential buffer overrun in op_model_cell.c

commit 238c1a78c957f3dc7cb848b161dcf4805793ed56 upstream.

Fix potential initial_lfsr buffer overrun.
Writing past the end of the buffer could happen when index == ENTRIES

Signed-off-by: Denis Kirjanov <dkirjanov@kernel.org>
Signed-off-by: Robert Richter <robert.richter@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/powerpc/oprofile/op_model_cell.c