Skip to content

Commit 84dffc8

Browse files
committed
Merge branch 'acpica' into fixes
* acpica: ACPICA: Refuse to evaluate a method if arguments are missing
2 parents e04c78d + 6fcab27 commit 84dffc8

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

drivers/acpi/acpica/dsmethod.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,13 @@ acpi_ds_call_control_method(struct acpi_thread_state *thread,
483483
return_ACPI_STATUS(AE_NULL_OBJECT);
484484
}
485485

486+
if (this_walk_state->num_operands < obj_desc->method.param_count) {
487+
ACPI_ERROR((AE_INFO, "Missing argument for method [%4.4s]",
488+
acpi_ut_get_node_name(method_node)));
489+
490+
return_ACPI_STATUS(AE_AML_UNINITIALIZED_ARG);
491+
}
492+
486493
/* Init for new method, possibly wait on method mutex */
487494

488495
status =

0 commit comments

Comments
 (0)