[ACPI] fix pnpacpi regression resulting from ACPICA 20051117

In ACPICA 20051117, acpi_walk_resources() started
sending ACPI_RESOURCE_TYPE_END_TAG to the callback
routine which wasn't prepared for it, causing
_CRS to fail and PnPACPI to not recognize any devices:

pnp: ACPI device : hid PNP0C02
pnp: PnPACPI: unknown resource type 7
pnp: PnPACPI: METHOD_NAME__CRS failure for PNP0c02

Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
Len Brown 2006-01-05 02:40:11 -05:00
parent 3173cdfe02
commit ed349a8a0a

View file

@ -286,6 +286,12 @@ acpi_walk_resources(acpi_handle device_handle,
break;
}
/* end_tag indicates end-of-list */
if (resource->type == ACPI_RESOURCE_TYPE_END_TAG) {
break;
}
/* Invoke the user function, abort on any error returned */
status = user_function(resource, context);
@ -298,12 +304,6 @@ acpi_walk_resources(acpi_handle device_handle,
break;
}
/* end_tag indicates end-of-list */
if (resource->type == ACPI_RESOURCE_TYPE_END_TAG) {
break;
}
/* Get the next resource descriptor */
resource =