diff options
author | Carl Love <cel@us.ibm.com> | 2008-10-29 08:06:45 -0700 |
---|---|---|
committer | Robert Richter <robert.richter@amd.com> | 2008-10-31 16:10:16 +0100 |
commit | 99219b4f3e0772a11fc0d98213b00e89fee7b049 (patch) | |
tree | c0cdc83bb2e1c54ef161413a750171070527b6cd /mm/mmap.c | |
parent | 22cffe494b6b5773b44fe8bb8f41b471c1734b53 (diff) |
Cell OProfile: Incorrect local array size in activate spu profiling function
Updated the patch to address comments by Michael Ellerman.
Specifically, changed upper limit in for loop to
ARRAY_SIZE() macro and added a check to make sure the
number of events specified by the user, which is used as
the max for indexing various arrays, is no bigger then the
declared size of the arrays.
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).
Signed-off-by: Carl Love <carll@us.ibm.com>
Diffstat (limited to 'mm/mmap.c')
0 files changed, 0 insertions, 0 deletions