Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bb78342c authored by Daniel Scally's avatar Daniel Scally Committed by Greg Kroah-Hartman
Browse files

Revert "ACPI / resources: Use AE_CTRL_TERMINATE to terminate resources walks"



commit 12fc4dad94dfac25599f31257aac181c691ca96f upstream.

This reverts commit 8a66790b.

Switching this function to AE_CTRL_TERMINATE broke the documented
behaviour of acpi_dev_get_resources() - AE_CTRL_TERMINATE does not, in
fact, terminate the resource walk because acpi_walk_resource_buffer()
ignores it (specifically converting it to AE_OK), referring to that
value as "an OK termination by the user function". This means that
acpi_dev_get_resources() does not abort processing when the preproc
function returns a negative value.

Signed-off-by: default avatarDaniel Scally <djrscally@gmail.com>
Cc: 3.10+ <stable@vger.kernel.org> # 3.10+
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3507348a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment