mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 12:04:51 +00:00
[ACPI]
- Don't assume that acpi_evaluate_reference will always complete successfully svn path=/trunk/; revision=53260
This commit is contained in:
parent
ce0491a5c3
commit
6d2566752f
1 changed files with 2 additions and 2 deletions
|
@ -401,9 +401,9 @@ acpi_bus_get_power_flags (
|
||||||
char object_name[5] = {'_','P','R','0'+i,'\0'};
|
char object_name[5] = {'_','P','R','0'+i,'\0'};
|
||||||
|
|
||||||
/* Evaluate "_PRx" to se if power resources are referenced */
|
/* Evaluate "_PRx" to se if power resources are referenced */
|
||||||
acpi_evaluate_reference(device->handle, object_name, NULL,
|
status = acpi_evaluate_reference(device->handle, object_name, NULL,
|
||||||
&ps->resources);
|
&ps->resources);
|
||||||
if (ps->resources.count) {
|
if (ACPI_SUCCESS(status) && ps->resources.count) {
|
||||||
device->power.flags.power_resources = 1;
|
device->power.flags.power_resources = 1;
|
||||||
ps->flags.valid = 1;
|
ps->flags.valid = 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue