]> git.ipfire.org Git - thirdparty/linux.git/commit
ACPICA: dispatcher: Use acpi_ds_clear_operands() in acpi_ds_call_control_method()
authorHans de Goede <hansg@kernel.org>
Fri, 12 Sep 2025 20:00:17 +0000 (22:00 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 15 Sep 2025 10:20:13 +0000 (12:20 +0200)
commite9dff11a7a50fcef23fe3e8314fafae6d5641826
tree15fe1f594cee5eff0e6f18c3e0c870adc6b8f455
parent22c65572eff14a6e9546a9dbaa333619eb5505ab
ACPICA: dispatcher: Use acpi_ds_clear_operands() in acpi_ds_call_control_method()

When deleting the previous walkstate operand stack
acpi_ds_call_control_method() was deleting obj_desc->Method.param_count
operands. But Method.param_count does not necessarily match
this_walk_state->num_operands, it may be either less or more.

After correcting the for loop to check `i < this_walk_state->num_operands`
the code is identical to acpi_ds_clear_operands(), so just outright
replace the code with acpi_ds_clear_operands() to fix this.

Link: https://github.com/acpica/acpica/commit/53fc0220
Signed-off-by: Hans de Goede <hansg@kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpica/dsmethod.c