[ACPI] Fix memset arguments in acpi processor_idle.c

http://bugzilla.kernel.org/show_bug.cgi?id=4954

Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>

authored by Venkatesh Pallipadi and committed by Len Brown 0b6b2f08 4a716402

+4 -2
+4 -2
drivers/acpi/processor_idle.c
··· 549 549 ACPI_FUNCTION_TRACE("acpi_processor_get_power_info_default_c1"); 550 550 551 551 for (i = 0; i < ACPI_PROCESSOR_MAX_POWER; i++) 552 - memset(pr->power.states, 0, sizeof(struct acpi_processor_cx)); 552 + memset(&(pr->power.states[i]), 0, 553 + sizeof(struct acpi_processor_cx)); 553 554 554 555 /* if info is obtained from pblk/fadt, type equals state */ 555 556 pr->power.states[ACPI_STATE_C1].type = ACPI_STATE_C1; ··· 581 580 582 581 pr->power.count = 0; 583 582 for (i = 0; i < ACPI_PROCESSOR_MAX_POWER; i++) 584 - memset(pr->power.states, 0, sizeof(struct acpi_processor_cx)); 583 + memset(&(pr->power.states[i]), 0, 584 + sizeof(struct acpi_processor_cx)); 585 585 586 586 status = acpi_evaluate_object(pr->handle, "_CST", NULL, &buffer); 587 587 if (ACPI_FAILURE(status)) {