提交 ed349a8a 编写于 作者: L Len Brown

[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: NLen Brown <len.brown@intel.com>
上级 3173cdfe
......@@ -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 =
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册