.. | .. |
---|
3 | 3 | * |
---|
4 | 4 | * Module Name: nsarguments - Validation of args for ACPI predefined methods |
---|
5 | 5 | * |
---|
6 | | - * Copyright (C) 2000 - 2018, Intel Corp. |
---|
| 6 | + * Copyright (C) 2000 - 2020, Intel Corp. |
---|
7 | 7 | * |
---|
8 | 8 | *****************************************************************************/ |
---|
9 | 9 | |
---|
.. | .. |
---|
55 | 55 | arg_type = METHOD_GET_NEXT_TYPE(arg_type_list); |
---|
56 | 56 | user_arg_type = info->parameters[i]->common.type; |
---|
57 | 57 | |
---|
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)) { |
---|
59 | 61 | ACPI_WARN_PREDEFINED((AE_INFO, info->full_pathname, |
---|
60 | 62 | ACPI_WARN_ALWAYS, |
---|
61 | 63 | "Argument #%u type mismatch - " |
---|