From 642b7fde11baa5a2b52ed150e0632c560b14f84e Mon Sep 17 00:00:00 2001 From: Len Brown Date: Mon, 2 Feb 2004 07:24:16 -0500 Subject: [PATCH] [ACPI] proposed fix for AML parameter passing from Bob Moore http://bugzilla.kernel.org/show_bug.cgi?id=1766 --- drivers/acpi/dispatcher/dsmthdat.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/acpi/dispatcher/dsmthdat.c b/drivers/acpi/dispatcher/dsmthdat.c index 1238aed959116..d8bb62179ac82 100644 --- a/drivers/acpi/dispatcher/dsmthdat.c +++ b/drivers/acpi/dispatcher/dsmthdat.c @@ -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); -- 2.53.0