]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit1cda809f192519b97d58c28f37c0e26bc3092209
tree26626f1f78d12fbe179bfeb9b7c1fecdac1d8c93
parent1e698d70a408e0f8668917f1de52ac73fc5bcef4
[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