lkml.org 
[lkml]   [2016]   [Oct]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [tip:x86/apic] x86/acpi: Introduce persistent storage for cpuid <-> apicid mapping
From
Date
Hi tglx,

At 10/07/2016 09:07 PM, Thomas Gleixner wrote:
> 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.
>

Yes, It is.

>> + return -EINVAL;
>
> Thanks,
>
> tglx
>
>

Thanks,

Dou


\
 
 \ /
  Last update: 2016-10-08 06:15    [W:0.103 / U:0.324 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site