projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d86e5f
)
ACPI: Fixes device power states array overflow
author
Lin Ming
<
[email protected]
>
Wed, 1 Jun 2011 15:54:02 +0000
(23:54 +0800)
committer
Len Brown
<
[email protected]
>
Thu, 14 Jul 2011 03:53:22 +0000
(23:53 -0400)
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 <
[email protected]
>
Suggested-by: Oldřich Jedlička <
[email protected]
>
Signed-off-by: Lin Ming <
[email protected]
>
Signed-off-by: Len Brown <
[email protected]
>
include/acpi/acpi_bus.h
patch
|
blob
|
history
diff --git
a/include/acpi/acpi_bus.h
b/include/acpi/acpi_bus.h
index 3a10ef5914eb5ab67dc981e3f6d21ee4cf0b3908..6cd5b6403a7b9f37eac4317807c97003c79cd9ba 100644
(file)
--- a/
include/acpi/acpi_bus.h
+++ b/
include/acpi/acpi_bus.h
@@
-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 */