[IA64] Avoid array overflow if there are too many cpus in SRAT table
authorTony Luck <tony.luck@intel.com>
Fri, 7 Jan 2011 17:11:55 +0000 (09:11 -0800)
committerTony Luck <tony.luck@intel.com>
Fri, 7 Jan 2011 17:11:55 +0000 (09:11 -0800)
commit05f2f274c8a8747bbfb13ac8ee0c27d5f2ad8510
tree26626f1f78d12fbe179bfeb9b7c1fecdac1d8c93
parente7d282535c94cddc208c03b7cd0815f70d676a0e
[IA64] Avoid array overflow if there are too many cpus in SRAT table

acpi_numa_init() has to parse the whole SRAT table, even if the
kernel wants to limit the number of cpus it will use (because the
ones it is going to use may be described by entries at the end of
the SRAT table).  Avoid overflowing the node_cpuid array.

Reported-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/kernel/acpi.c