diff options
author | Lin Ming <ming.m.lin@intel.com> | 2008-11-12 21:54:39 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-12-29 22:38:38 -0500 |
commit | d037c5fd7367548191eab2b376a1d08c4ffaf7ff (patch) | |
tree | 396e07586967599ed4999500d6ddb640ef474bac /drivers/acpi/namespace/nsutils.c | |
parent | 5572a9859fa55216597b8226717691956d3e53e3 (diff) |
ACPICA: Allow multiple backslash prefix in namepaths
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>
Diffstat (limited to 'drivers/acpi/namespace/nsutils.c')
-rw-r--r-- | drivers/acpi/namespace/nsutils.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/acpi/namespace/nsutils.c b/drivers/acpi/namespace/nsutils.c index b0817e1127b1..337fb04e0388 100644 --- a/drivers/acpi/namespace/nsutils.c +++ b/drivers/acpi/namespace/nsutils.c | |||
@@ -314,9 +314,15 @@ void acpi_ns_get_internal_name_length(struct acpi_namestring_info *info) | |||
314 | * | 314 | * |
315 | * strlen() + 1 covers the first name_seg, which has no path separator | 315 | * strlen() + 1 covers the first name_seg, which has no path separator |
316 | */ | 316 | */ |
317 | if (acpi_ns_valid_root_prefix(next_external_char[0])) { | 317 | if (acpi_ns_valid_root_prefix(*next_external_char)) { |
318 | info->fully_qualified = TRUE; | 318 | info->fully_qualified = TRUE; |
319 | next_external_char++; | 319 | next_external_char++; |
320 | |||
321 | /* Skip redundant root_prefix, like \\_SB.PCI0.SBRG.EC0 */ | ||
322 | |||
323 | while (acpi_ns_valid_root_prefix(*next_external_char)) { | ||
324 | next_external_char++; | ||
325 | } | ||
320 | } else { | 326 | } else { |
321 | /* | 327 | /* |
322 | * Handle Carat prefixes | 328 | * Handle Carat prefixes |