diff options
author | Dou Liyang <douly.fnst@cn.fujitsu.com> | 2018-08-24 10:51:26 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-11-13 11:14:54 -0800 |
commit | 85e20b47dec298b569de62cce4b1762f647b28e7 (patch) | |
tree | a2baa6cfee9b72427fafe19e2744c0f80b38be77 /drivers/cpufreq | |
parent | 0d7a51786faf11362a9d9b3841f9d9ffe5b65c24 (diff) | |
download | linux-rt-85e20b47dec298b569de62cce4b1762f647b28e7.tar.gz |
ACPI / processor: Fix the return value of acpi_processor_ids_walk()
[ Upstream commit d0381bf4f80c571dde1244fe5b85dc35e8b3f546 ]
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: 8c8cb30f49b8 (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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/cpufreq')
0 files changed, 0 insertions, 0 deletions