diff options
Diffstat (limited to 'drivers/acpi/processor_idle.c')
-rw-r--r-- | drivers/acpi/processor_idle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index e39a40a2ceae..e65476fdf40d 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c | |||
@@ -582,7 +582,7 @@ static int acpi_processor_power_verify(struct acpi_processor *pr) | |||
582 | 582 | ||
583 | pr->power.timer_broadcast_on_state = INT_MAX; | 583 | pr->power.timer_broadcast_on_state = INT_MAX; |
584 | 584 | ||
585 | for (i = 1; i < ACPI_PROCESSOR_MAX_POWER; i++) { | 585 | for (i = 1; i < ACPI_PROCESSOR_MAX_POWER && i <= max_cstate; i++) { |
586 | struct acpi_processor_cx *cx = &pr->power.states[i]; | 586 | struct acpi_processor_cx *cx = &pr->power.states[i]; |
587 | 587 | ||
588 | switch (cx->type) { | 588 | switch (cx->type) { |