Re: [tip:x86/apic] x86/acpi: Introduce persistent storage for cpuid <-> apicid mapping

From: Thomas Gleixner
Date: Fri Oct 07 2016 - 09:10:45 EST


On Thu, 6 Oct 2016, Dou Liyang wrote:
>
> + if (processor->id >= 255) {
> + ++disabled_cpus;

Incrementing disabled_cpus here is simply wrong because 0xff is an invalid
local APIC id. So we can simply return -EINVAL and be done with it.

> + return -EINVAL;

Thanks,

tglx