]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / processor: Fix the return value of acpi_processor_ids_walk()
authorDou Liyang <douly.fnst@cn.fujitsu.com>
Fri, 24 Aug 2018 02:51:26 +0000 (10:51 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 4 Oct 2018 06:58:32 +0000 (08:58 +0200)
commit51e202543cdeeff87ba4127e9131fb7c1768b444
tree72cb78100c435e226eca530e31294f1a6de52b30
parent5dfa044c3a3b9125da254b1d9969551d27523c1c
ACPI / processor: Fix the return value of acpi_processor_ids_walk()

ACPI driver should make sure all the processor IDs in their ACPI Namespace
are unique. the driver performs a depth-first walk of the namespace tree
and calls the acpi_processor_ids_walk() to check the duplicate IDs.

But, the acpi_processor_ids_walk() mistakes the return value. If a
processor is checked, it returns true which causes the walk break
immediately, and other processors will never be checked.

Repace the value with AE_OK which is the standard acpi_status value.
And don't abort the namespace walk even on error.

Fixes: 4252d154bdb5 (acpi/processor: Implement DEVICE operator for processor enumeration)
Signed-off-by: Dou Liyang <douly.fnst@cn.fujitsu.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpi_processor.c