hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/acpi/acpica/nsarguments.c
....@@ -3,7 +3,7 @@
33 *
44 * Module Name: nsarguments - Validation of args for ACPI predefined methods
55 *
6
- * Copyright (C) 2000 - 2018, Intel Corp.
6
+ * Copyright (C) 2000 - 2020, Intel Corp.
77 *
88 *****************************************************************************/
99
....@@ -55,7 +55,9 @@
5555 arg_type = METHOD_GET_NEXT_TYPE(arg_type_list);
5656 user_arg_type = info->parameters[i]->common.type;
5757
58
- if (user_arg_type != arg_type) {
58
+ /* No typechecking for ACPI_TYPE_ANY */
59
+
60
+ if ((user_arg_type != arg_type) && (arg_type != ACPI_TYPE_ANY)) {
5961 ACPI_WARN_PREDEFINED((AE_INFO, info->full_pathname,
6062 ACPI_WARN_ALWAYS,
6163 "Argument #%u type mismatch - "