Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 46392
b: refs/heads/master
c: c101462
h: refs/heads/master
v: v3
  • Loading branch information
Bob Moore authored and Len Brown committed Feb 3, 2007
1 parent e7f1bc4 commit 0c6d072
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3effba32069514e56bcb778f90cd34fdbac79a50
refs/heads/master: c1014629c0fc563be65e675e72bcc9bd7db50195
26 changes: 15 additions & 11 deletions trunk/drivers/acpi/namespace/nswalk.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,24 +194,28 @@ acpi_ns_walk_namespace(acpi_object_type type,
child_node);
if (child_node) {

/* Found node, Get the type if we are not searching for ANY */
/* Found next child, get the type if we are not searching for ANY */

if (type != ACPI_TYPE_ANY) {
child_type = child_node->type;
}

/*
* 1) Type must match
* 2) Permanent namespace nodes are OK
* 3) Ignore temporary nodes unless told otherwise. Typically,
* the temporary nodes can cause a race condition where they can
* be deleted during the execution of the user function. Only the
* debugger namespace dump will examine the temporary nodes.
* Ignore all temporary namespace nodes (created during control
* method execution) unless told otherwise. These temporary nodes
* can cause a race condition because they can be deleted during the
* execution of the user function (if the namespace is unlocked before
* invocation of the user function.) Only the debugger namespace dump
* will examine the temporary nodes.
*/
if ((child_type == type) &&
(!(child_node->flags & ANOBJ_TEMPORARY) ||
(child_node->flags & ANOBJ_TEMPORARY)
&& (flags & ACPI_NS_WALK_TEMP_NODES))) {
if ((child_node->flags & ANOBJ_TEMPORARY) &&
!(flags & ACPI_NS_WALK_TEMP_NODES)) {
status = AE_CTRL_DEPTH;
}

/* Type must match requested type */

else if (child_type == type) {
/*
* Found a matching node, invoke the user callback function.
* Unlock the namespace if flag is set.
Expand Down

0 comments on commit 0c6d072

Please sign in to comment.