Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 117309
b: refs/heads/master
c: b68bacf
h: refs/heads/master
i:
  117307: cfc0474
v: v3
  • Loading branch information
Bob Moore authored and Len Brown committed Oct 23, 2008
1 parent b56b78e commit b3770c1
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 65f4692c5220330e1ea044796c4cfa603e349c84
refs/heads/master: b68bacf225e5e9758472e99505d76125ced3ea88
21 changes: 21 additions & 0 deletions trunk/drivers/acpi/namespace/nseval.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,28 @@ acpi_status acpi_ns_evaluate(struct acpi_evaluate_info * info)
} else {
/*
* 2) Object is not a method, return its current value
*
* Disallow certain object types. For these, "evaluation" is undefined.
*/
switch (info->resolved_node->type) {
case ACPI_TYPE_DEVICE:
case ACPI_TYPE_EVENT:
case ACPI_TYPE_MUTEX:
case ACPI_TYPE_REGION:
case ACPI_TYPE_THERMAL:
case ACPI_TYPE_LOCAL_SCOPE:

ACPI_ERROR((AE_INFO,
"[%4.4s] Evaluation of object type [%s] is not supported",
info->resolved_node->name.ascii,
acpi_ut_get_type_name(info->resolved_node->
type)));

return_ACPI_STATUS(AE_TYPE);

default:
break;
}

/*
* Objects require additional resolution steps (e.g., the Node may be
Expand Down

0 comments on commit b3770c1

Please sign in to comment.