diff options
author | Carl Love <[email protected]> | 2008-10-29 05:06:45 +0000 |
---|---|---|
committer | Paul Mackerras <[email protected]> | 2008-10-31 16:13:51 +1100 |
commit | 210434d7633d477aa503454d68511fa2904e418e (patch) | |
tree | 8f06b51f5dc03f35fd7cb54329d0a61c88db9cd2 /net/lapb/lapb_in.c | |
parent | 3c10c9c45e290022ca7d2aa1ad33a0b6ed767520 (diff) |
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 <[email protected]>
Signed-off-by: Paul Mackerras <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions