From: Carl Love Date: Wed, 29 Oct 2008 05:06:45 +0000 (+0000) Subject: powerpc/cell/OProfile: Fix on-stack array size in activate spu profiling function X-Git-Tag: v2.6.28-rc3~22^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=210434d7633d477aa503454d68511fa2904e418e;p=pandora-kernel.git 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 Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed