]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
powerpc/cell/OProfile: Fix on-stack array size in activate spu profiling function
authorCarl Love <cel@us.ibm.com>
Wed, 29 Oct 2008 05:06:45 +0000 (05:06 +0000)
committerPaul Mackerras <paulus@samba.org>
Fri, 31 Oct 2008 05:13:51 +0000 (16:13 +1100)
commit210434d7633d477aa503454d68511fa2904e418e
tree8f06b51f5dc03f35fd7cb54329d0a61c88db9cd2
parent3c10c9c45e290022ca7d2aa1ad33a0b6ed767520
powerpc/cell/OProfile: Fix on-stack array size in activate spu profiling function

The size of the pm_signal_local array should be equal to the
number of SPUs being configured in the array.  Currently, the
array is of size 4 (NR_PHYS_CTRS) but being indexed by a for
loop from 0 to 7 (NUM_SPUS_PER_NODE).  This could potentially
cause an oops or random memory corruption since the pm_signal_local
array is on the stack.  This fixes it.

Signed-off-by: Carl Love <carll@us.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/oprofile/op_model_cell.c