]> git.karo-electronics.de Git - karo-tx-linux.git/commit
powerpc/oprofile: fix potential buffer overrun in op_model_cell.c
authorDenis Kirjanov <dkirjanov@hera.kernel.org>
Tue, 1 Jun 2010 19:43:34 +0000 (15:43 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Jul 2010 18:22:21 +0000 (11:22 -0700)
commite0d3a4aeaff41e8cac4fc416fda9978610ff9f91
treeb0e8ebac73bc3e48fef8b26e80152cd5d9642dac
parentb8504b8d34bf036b952c3f3b0f5cd5864d5f42e5
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