Re: acpi: Fix broken error check in map_processor()

2016-09-23 Thread Rafael J. Wysocki
On Fri, Sep 23, 2016 at 5:08 PM, Thomas Gleixner wrote: > map_processor() checks the cpuid value returned by acpi_map_cpuid() for -1 > but acpi_map_cpuid() returns -EINVAL in case of error. > > As a consequence the error is ignored and the following access into percpu > data with that negative cpu

[tip:x86/apic] acpi: Fix broken error check in map_processor()

2016-09-23 Thread tip-bot for Thomas Gleixner
Commit-ID: c183a603e8d8a5a189729b77d0c623a3d5950e5f Gitweb: http://git.kernel.org/tip/c183a603e8d8a5a189729b77d0c623a3d5950e5f Author: Thomas Gleixner AuthorDate: Fri, 23 Sep 2016 17:08:04 +0200 Committer: Ingo Molnar CommitDate: Fri, 23 Sep 2016 18:04:56 +0200 acpi: Fix broken error

acpi: Fix broken error check in map_processor()

2016-09-23 Thread Thomas Gleixner
map_processor() checks the cpuid value returned by acpi_map_cpuid() for -1 but acpi_map_cpuid() returns -EINVAL in case of error. As a consequence the error is ignored and the following access into percpu data with that negative cpuid results in a boot crash. This happens always when NR_CPUS/nr_c