diff options
author | Dean Roe <roe@sgi.com> | 2006-02-14 15:01:23 -0600 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2006-02-15 13:33:48 -0800 |
commit | c2a4969ba14e852bf4ee92c7db3b0cf82405a0c9 (patch) | |
tree | a79b5559260fb09525e764ab41366ff75f3f6677 /include/asm-ia64/sn | |
parent | 9c65cb9be62ac4993a5b392304b82e4f04f010fd (diff) | |
download | linux-c2a4969ba14e852bf4ee92c7db3b0cf82405a0c9.tar.bz2 |
[IA64-SGI] fix the size of __sn_cnodeid_to_nasid
The __sn_cnodeid_to_nasid array was incorrectly sized at MAX_NUMNODES.
On a large system, this array could overflow. The following patch
corrects this by defining it to MAX_COMPACT_NODES.
Signed-off-by: Dean Roe <roe@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'include/asm-ia64/sn')
-rw-r--r-- | include/asm-ia64/sn/arch.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-ia64/sn/arch.h b/include/asm-ia64/sn/arch.h index 1a3831c04af6..91c31be87b13 100644 --- a/include/asm-ia64/sn/arch.h +++ b/include/asm-ia64/sn/arch.h @@ -70,7 +70,7 @@ DECLARE_PER_CPU(struct sn_hub_info_s, __sn_hub_info); * Compact node ID to nasid mappings kept in the per-cpu data areas of each * cpu. */ -DECLARE_PER_CPU(short, __sn_cnodeid_to_nasid[MAX_NUMNODES]); +DECLARE_PER_CPU(short, __sn_cnodeid_to_nasid[MAX_COMPACT_NODES]); #define sn_cnodeid_to_nasid (&__get_cpu_var(__sn_cnodeid_to_nasid[0])) |