Skip to content

Commit

Permalink
ACPICA: Allow multiple backslash prefix in namepaths
Browse files Browse the repository at this point in the history
In a fully qualified namepath, allow multiple backslash prefixes.
This can happen because of the use of a double-backslash in strings
(since backslash is the escape character) causing confusion.
ACPICA BZ 739 Lin Ming.

http://www.acpica.org/bugzilla/show_bug.cgi?id=739

Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
  • Loading branch information
Lin Ming authored and Len Brown committed Dec 30, 2008
1 parent 5572a98 commit d037c5f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion drivers/acpi/namespace/nsutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -314,9 +314,15 @@ void acpi_ns_get_internal_name_length(struct acpi_namestring_info *info)
*
* strlen() + 1 covers the first name_seg, which has no path separator
*/
if (acpi_ns_valid_root_prefix(next_external_char[0])) {
if (acpi_ns_valid_root_prefix(*next_external_char)) {
info->fully_qualified = TRUE;
next_external_char++;

/* Skip redundant root_prefix, like \\_SB.PCI0.SBRG.EC0 */

while (acpi_ns_valid_root_prefix(*next_external_char)) {
next_external_char++;
}
} else {
/*
* Handle Carat prefixes
Expand Down

0 comments on commit d037c5f

Please sign in to comment.