]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - arch/ia64/kernel/acpi.c
Merge tag 'v2.6.38' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
[mv-sheeva.git] / arch / ia64 / kernel / acpi.c
index c6c90f39f4d9e35381cedf30cbd700fd4d7c84cb..90ebceb899a0840bd66deae5e9d4446ed027c7f4 100644 (file)
@@ -477,6 +477,12 @@ acpi_numa_processor_affinity_init(struct acpi_srat_cpu_affinity *pa)
        if (!(pa->flags & ACPI_SRAT_CPU_ENABLED))
                return;
 
+       if (srat_num_cpus >= ARRAY_SIZE(node_cpuid)) {
+               printk_once(KERN_WARNING
+                           "node_cpuid[%ld] is too small, may not be able to use all cpus\n",
+                           ARRAY_SIZE(node_cpuid));
+               return;
+       }
        pxm = get_processor_proximity_domain(pa);
 
        /* record this node in proximity bitmap */