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)
committerRobert Richter <robert.richter@amd.com>
Mon, 7 Jun 2010 09:18:56 +0000 (11:18 +0200)
commit238c1a78c957f3dc7cb848b161dcf4805793ed56
tree4808d597025d5eceec474deab9741038aa52ca2e
parent58cc1a9e3b11a84e66c4d3a4cc9073f2cb0ecabb
powerpc/oprofile: fix potential buffer overrun in op_model_cell.c

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>
Cc: stable@kernel.org
Signed-off-by: Robert Richter <robert.richter@amd.com>
arch/powerpc/oprofile/op_model_cell.c