Commit a647b5c3 authored by Bob Moore's avatar Bob Moore Committed by Len Brown

ACPICA: Add Buffer->String conversion for predefined methods

For predefined methods (such as _BIF), add automatic conversion for
objects that are required to be a String, but a Buffer was found
instead. This can happen when reading string battery data from
an operation region, because it used to be difficult to convert
the data from buffer to string from within the ASL. Linux BZ 11822.

http://bugzilla.kernel.org/show_bug.cgi?id=11822Signed-off-by: default avatarBob Moore <robert.moore@intel.com>
Signed-off-by: default avatarLin Ming <ming.m.lin@intel.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent d037c5fd
...@@ -282,8 +282,7 @@ acpi_status acpi_ns_evaluate(struct acpi_evaluate_info * info) ...@@ -282,8 +282,7 @@ acpi_status acpi_ns_evaluate(struct acpi_evaluate_info * info)
* the method on invalid return object. * the method on invalid return object.
*/ */
(void)acpi_ns_check_predefined_names(node, (void)acpi_ns_check_predefined_names(node,
info-> &info->return_object);
return_object);
} }
/* Mark the node as having been evaluated */ /* Mark the node as having been evaluated */
......
This diff is collapsed.
...@@ -182,7 +182,7 @@ acpi_status acpi_ns_evaluate(struct acpi_evaluate_info *info); ...@@ -182,7 +182,7 @@ acpi_status acpi_ns_evaluate(struct acpi_evaluate_info *info);
*/ */
acpi_status acpi_status
acpi_ns_check_predefined_names(struct acpi_namespace_node *node, acpi_ns_check_predefined_names(struct acpi_namespace_node *node,
union acpi_operand_object *return_object); union acpi_operand_object **return_object);
const union acpi_predefined_info *acpi_ns_check_for_predefined_name(struct const union acpi_predefined_info *acpi_ns_check_for_predefined_name(struct
acpi_namespace_node acpi_namespace_node
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment