aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi')
-rw-r--r--drivers/acpi/acpica/nspredef.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/acpi/acpica/nspredef.c b/drivers/acpi/acpica/nspredef.c
index 8314e6a9e726..f8427afeebdf 100644
--- a/drivers/acpi/acpica/nspredef.c
+++ b/drivers/acpi/acpica/nspredef.c
@@ -193,11 +193,15 @@ acpi_ns_check_predefined_names(struct acpi_namespace_node *node,
193 } 193 }
194 194
195 /* 195 /*
196 * We have a return value, but if one wasn't expected, just exit, this is 196 * 1) We have a return value, but if one wasn't expected, just exit, this is
197 * not a problem. For example, if the "Implicit Return" feature is 197 * not a problem. For example, if the "Implicit Return" feature is
198 * enabled, methods will always return a value. 198 * enabled, methods will always return a value.
199 *
200 * 2) If the return value can be of any type, then we cannot perform any
201 * validation, exit.
199 */ 202 */
200 if (!predefined->info.expected_btypes) { 203 if ((!predefined->info.expected_btypes) ||
204 (predefined->info.expected_btypes == ACPI_RTYPE_ALL)) {
201 goto cleanup; 205 goto cleanup;
202 } 206 }
203 207