aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpica/nspredef.c
diff options
context:
space:
mode:
authorBob Moore <robert.moore@intel.com>2009-12-11 01:53:11 -0500
committerLen Brown <len.brown@intel.com>2009-12-15 17:29:35 -0500
commit34c39c755347c1ca3d06284bad2273c6a9c3108a (patch)
tree3e46f996ff85a9888162cde30dc7b12749cd156c /drivers/acpi/acpica/nspredef.c
parentebdca3edd5ac61e37f2f5e7c11006c1a68d3cc7e (diff)
ACPICA: Add repair for bad _FDE/_GTM buffers
The expected return value for both names is a Buffer of 5 DWORDS. This repair fixes two possible problems (both seen in the field): A package of integers is returned, or a buffer of BYTEs is returned. Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Lin Ming <ming.m.lin@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/acpica/nspredef.c')
-rw-r--r--drivers/acpi/acpica/nspredef.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/drivers/acpi/acpica/nspredef.c b/drivers/acpi/acpica/nspredef.c
index b05f42903c86..1782c3d85ba2 100644
--- a/drivers/acpi/acpica/nspredef.c
+++ b/drivers/acpi/acpica/nspredef.c
@@ -222,23 +222,21 @@ acpi_ns_check_predefined_names(struct acpi_namespace_node *node,
222 status = acpi_ns_check_object_type(data, return_object_ptr, 222 status = acpi_ns_check_object_type(data, return_object_ptr,
223 predefined->info.expected_btypes, 223 predefined->info.expected_btypes,
224 ACPI_NOT_PACKAGE_ELEMENT); 224 ACPI_NOT_PACKAGE_ELEMENT);
225 if (ACPI_FAILURE(status)) { 225 if (ACPI_SUCCESS(status)) {
226 goto check_validation_status;
227 }
228 226
229 /* For returned Package objects, check the type of all sub-objects */ 227 /* For returned Package objects, check the type of all sub-objects */
230 228
231 if (return_object->common.type == ACPI_TYPE_PACKAGE) { 229 if (return_object->common.type == ACPI_TYPE_PACKAGE) {
232 status = acpi_ns_check_package(data, return_object_ptr); 230 status = acpi_ns_check_package(data, return_object_ptr);
231 }
233 } 232 }
234 233
235 /* 234 /*
236 * Perform additional, more complicated repairs on a per-name 235 * Perform additional, more complicated repairs on a per-name
237 * basis. 236 * basis. Do this regardless of the status from above.
238 */ 237 */
239 status = acpi_ns_complex_repairs(data, node, status, return_object_ptr); 238 status = acpi_ns_complex_repairs(data, node, status, return_object_ptr);
240 239
241check_validation_status:
242 /* 240 /*
243 * If the object validation failed or if we successfully repaired one 241 * If the object validation failed or if we successfully repaired one
244 * or more objects, mark the parent node to suppress further warning 242 * or more objects, mark the parent node to suppress further warning