linux/drivers/acpi/x86
Mario Limonciello 7c70932568 ACPI: x86: s2idle: Fix a logic error parsing AMD constraints table
[ Upstream commit 9cc8cd086f ]

The constraints table should be resetting the `list` object
after running through all of `info_obj` iterations.

This adjusts whitespace as well as less code will now be included
with each loop. This fixes a functional problem is fixed where a
badly formed package in the inner loop may have incorrect data.

Fixes: 146f1ed852 ("ACPI: PM: s2idle: Add AMD support to handle _DSM")
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2023-09-13 09:42:29 +02:00
..
apple.c ACPI: property: Silence missing-declarations warning in apple.c 2022-09-03 20:58:58 +02:00
s2idle.c ACPI: x86: s2idle: Fix a logic error parsing AMD constraints table 2023-09-13 09:42:29 +02:00
utils.c ACPI: x86: utils: Add Cezanne to the list for forcing StorageD3Enable 2023-03-30 12:49:16 +02:00