public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ACPI: Fixes device power states array overflow
@ 2011-05-30 13:42 Lin Ming
  2011-05-31 21:09 ` Oldřich Jedlička
  0 siblings, 1 reply; 3+ messages in thread
From: Lin Ming @ 2011-05-30 13:42 UTC (permalink / raw)
  To: Len Brown; +Cc: linux-acpi, Dan Carpenter

Commit 28c2103 added new state ACPI_STATE_D3_COLD, so the device power
states array must be expanded by one also.

Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
---
 include/acpi/acpi_bus.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h
index 3a10ef5..ff246e8 100644
--- 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[5];	/* Power states (D0-D3Cold) */
 };
 
 /* Performance Management */
-- 
1.7.2.3




^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-06-01 14:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-30 13:42 [PATCH] ACPI: Fixes device power states array overflow Lin Ming
2011-05-31 21:09 ` Oldřich Jedlička
2011-06-01 15:55   ` Lin Ming

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox