Message ID | 1497897167-14556-213-git-send-email-w@1wt.eu |
---|---|
State | New |
Headers | show |
Series | None | expand |
diff --git a/drivers/acpi/power.c b/drivers/acpi/power.c index 288bb27..9954200 100644 --- a/drivers/acpi/power.c +++ b/drivers/acpi/power.c @@ -211,6 +211,7 @@ static int acpi_power_get_list_state(struct list_head *list, int *state) return -EINVAL; /* The state of the list is 'on' IFF all resources are 'on'. */ + cur_state = 0; list_for_each_entry(entry, list, node) { struct acpi_power_resource *resource = entry->resource; acpi_handle handle = resource->device.handle;