ACPI: Fixes device power states array overflow
Commit 28c2103
added new state ACPI_STATE_D3_COLD, so the device power
states array must be expanded by one also.
v2: Use ACPI_D_STATE_COUNT instead of number 5 for the array size.
Reported-by: Dan Carpenter <error27@gmail.com>
Suggested-by: Oldřich Jedlička <oldium.pro@seznam.cz>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
parent
8d86e5f914
commit
b4a03b9aa9
1 changed files with 1 additions and 1 deletions
|
@ -210,7 +210,7 @@ struct acpi_device_power_state {
|
|||
struct acpi_device_power {
|
||||
int state; /* Current state */
|
||||
struct acpi_device_power_flags flags;
|
||||
struct acpi_device_power_state states[4]; /* Power states (D0-D3) */
|
||||
struct acpi_device_power_state states[ACPI_D_STATE_COUNT]; /* Power states (D0-D3Cold) */
|
||||
};
|
||||
|
||||
/* Performance Management */
|
||||
|
|
Loading…
Reference in a new issue