Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755160AbcJGNKk (ORCPT ); Fri, 7 Oct 2016 09:10:40 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:44149 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755025AbcJGNKd (ORCPT ); Fri, 7 Oct 2016 09:10:33 -0400 Date: Fri, 7 Oct 2016 15:07:32 +0200 (CEST) From: Thomas Gleixner To: Dou Liyang cc: Yinghai Lu , Linux Kernel Mailing List , Ingo Molnar , "H. Peter Anvin" , "linux-tip-commits@vger.kernel.org" , Tony Luck Subject: Re: [tip:x86/apic] x86/acpi: Introduce persistent storage for cpuid <-> apicid mapping In-Reply-To: <4608f474-c49e-550b-90e2-c5f4c25e00f5@cn.fujitsu.com> Message-ID: References: <1472114120-3281-4-git-send-email-douly.fnst@cn.fujitsu.com> <4608f474-c49e-550b-90e2-c5f4c25e00f5@cn.fujitsu.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 309 Lines: 13 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