Author: cgutman
Date: Mon Aug 15 07:46:02 2011
New Revision: 53260
URL:
http://svn.reactos.org/svn/reactos?rev=53260&view=rev
Log:
[ACPI]
- Don't assume that acpi_evaluate_reference will always complete successfully
Modified:
trunk/reactos/drivers/bus/acpi/busmgr/bus.c
Modified: trunk/reactos/drivers/bus/acpi/busmgr/bus.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/acpi/busmgr/bu…
==============================================================================
--- trunk/reactos/drivers/bus/acpi/busmgr/bus.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/bus/acpi/busmgr/bus.c [iso-8859-1] Mon Aug 15 07:46:02 2011
@@ -401,9 +401,9 @@
char object_name[5] =
{'_','P','R','0'+i,'\0'};
/* 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);
- if (ps->resources.count) {
+ if (ACPI_SUCCESS(status) && ps->resources.count) {
device->power.flags.power_resources = 1;
ps->flags.valid = 1;
}