Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 350876
b: refs/heads/master
c: f8c9bfe
h: refs/heads/master
v: v3
  • Loading branch information
Bob Moore authored and Rafael J. Wysocki committed Jan 10, 2013
1 parent c5f5e3f commit e9e4f17
Show file tree
Hide file tree
Showing 2 changed files with 10 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: 04a81dce13c672757637b759039de216ed29a536
refs/heads/master: f8c9bfe461bb2923ae5d070f1ec0fb312825caad
9 changes: 9 additions & 0 deletions trunk/drivers/acpi/acpica/nsutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,8 @@ acpi_ns_get_node(struct acpi_namespace_node *prefix_node,

ACPI_FUNCTION_TRACE_PTR(ns_get_node, ACPI_CAST_PTR(char, pathname));

/* Simplest case is a null pathname */

if (!pathname) {
*return_node = prefix_node;
if (!prefix_node) {
Expand All @@ -679,6 +681,13 @@ acpi_ns_get_node(struct acpi_namespace_node *prefix_node,
return_ACPI_STATUS(AE_OK);
}

/* Quick check for a reference to the root */

if (ACPI_IS_ROOT_PREFIX(pathname[0]) && (!pathname[1])) {
*return_node = acpi_gbl_root_node;
return_ACPI_STATUS(AE_OK);
}

/* Convert path to internal representation */

status = acpi_ns_internalize_name(pathname, &internal_path);
Expand Down

0 comments on commit e9e4f17

Please sign in to comment.