]> git.neil.brown.name Git - history.git/commitdiff
[ACPI] proposed fix for AML parameter passing from Bob Moore
authorLen Brown <len.brown@intel.com>
Mon, 2 Feb 2004 12:24:16 +0000 (07:24 -0500)
committerLen Brown <lenb@dhcppc3.>
Mon, 2 Feb 2004 12:24:16 +0000 (07:24 -0500)
  http://bugzilla.kernel.org/show_bug.cgi?id=1766

drivers/acpi/dispatcher/dsmthdat.c

index 1238aed95911643449d487dd7ff11afef25a1f75..d8bb62179ac827035c2199c95b8d3861ac5e3be5 100644 (file)
@@ -203,9 +203,10 @@ acpi_ds_method_data_init_args (
        while ((index < ACPI_METHOD_NUM_ARGS) && (index < max_param_count) && params[index]) {
                /*
                 * A valid parameter.
-                * Store the argument in the method/walk descriptor
+                * Store the argument in the method/walk descriptor.
+                * Do not copy the arg in order to implement call by reference
                 */
-               status = acpi_ds_store_object_to_local (AML_ARG_OP, index, params[index],
+               status = acpi_ds_method_data_set_value (AML_ARG_OP, index, params[index],
                                 walk_state);
                if (ACPI_FAILURE (status)) {
                        return_ACPI_STATUS (status);