x86/acpi: Prevent LAPIC id 0xff from being accounted
[cascardo/linux.git] / arch / x86 / kernel / acpi / boot.c
index 32a7d70..8a5abaa 100644 (file)
@@ -233,6 +233,10 @@ acpi_parse_lapic(struct acpi_subtable_header * header, const unsigned long end)
 
        acpi_table_print_madt_entry(header);
 
+       /* Ignore invalid ID */
+       if (processor->id == 0xff)
+               return 0;
+
        /*
         * We need to register disabled CPU as well to permit
         * counting disabled CPUs. This allows us to size