From e011adfa7048418c89b203c6a77f9babdedca23d Mon Sep 17 00:00:00 2001 From: Denis Kirjanov Date: Tue, 1 Jun 2010 15:43:34 -0400 Subject: [PATCH] --- yaml --- r: 205371 b: refs/heads/master c: b12eab1a796a306caef7046b21a76efa35f5f489 h: refs/heads/master i: 205369: f9732ec731813d0b6864c09d2f9b83593d5f8bad 205367: 3464d8ee69ac1b33417f06dd26195e5389f2f014 v: v3 --- [refs] | 2 +- trunk/arch/powerpc/oprofile/op_model_cell.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 6155bca4fadf..60136de86286 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: d8a382d2662822248a97ce9d670b90e68aefbd3a +refs/heads/master: b12eab1a796a306caef7046b21a76efa35f5f489 diff --git a/trunk/arch/powerpc/oprofile/op_model_cell.c b/trunk/arch/powerpc/oprofile/op_model_cell.c index 2c9e52267292..7fd90d02d8c6 100644 --- a/trunk/arch/powerpc/oprofile/op_model_cell.c +++ b/trunk/arch/powerpc/oprofile/op_model_cell.c @@ -1077,7 +1077,7 @@ static int calculate_lfsr(int n) index = ENTRIES-1; /* make sure index is valid */ - if ((index > ENTRIES) || (index < 0)) + if ((index >= ENTRIES) || (index < 0)) index = ENTRIES-1; return initial_lfsr[index];