From 844ec66adabdf0549a7baedcee011b663c8ab21f Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Wed, 4 Feb 2009 09:08:26 -0800 Subject: [PATCH] .27 patch --- ...ltiple-backslash-prefix-in-namepaths.patch | 45 +++++++++++++++++++ queue-2.6.27/series | 1 + 2 files changed, 46 insertions(+) create mode 100644 queue-2.6.27/acpica-allow-multiple-backslash-prefix-in-namepaths.patch diff --git a/queue-2.6.27/acpica-allow-multiple-backslash-prefix-in-namepaths.patch b/queue-2.6.27/acpica-allow-multiple-backslash-prefix-in-namepaths.patch new file mode 100644 index 00000000000..1f4f56316e3 --- /dev/null +++ b/queue-2.6.27/acpica-allow-multiple-backslash-prefix-in-namepaths.patch @@ -0,0 +1,45 @@ +From d037c5fd7367548191eab2b376a1d08c4ffaf7ff Mon Sep 17 00:00:00 2001 +From: Lin Ming +Date: Thu, 13 Nov 2008 10:54:39 +0800 +Subject: ACPICA: Allow multiple backslash prefix in namepaths + +From: Lin Ming + +commit d037c5fd7367548191eab2b376a1d08c4ffaf7ff upstream. + +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 +Signed-off-by: Bob Moore +Signed-off-by: Len Brown +Cc: Thomas Renninger +Signed-off-by: Greg Kroah-Hartman + +--- + drivers/acpi/namespace/nsutils.c | 8 +++++++- + 1 file changed, 7 insertions(+), 1 deletion(-) + +--- a/drivers/acpi/namespace/nsutils.c ++++ b/drivers/acpi/namespace/nsutils.c +@@ -314,9 +314,15 @@ void acpi_ns_get_internal_name_length(st + * + * 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 diff --git a/queue-2.6.27/series b/queue-2.6.27/series index 9ff6bad1c52..2f9fcbf9ef8 100644 --- a/queue-2.6.27/series +++ b/queue-2.6.27/series @@ -38,3 +38,4 @@ acpi-do-not-modify-sci_en-directly.patch acpi-suspend-blacklist-hp-xw4600-workstation-for-old-code-ordering.patch dlm-initialize-file_lock-struct-in-getlk-before-copying-conflicting-lock.patch sata_mv-fix-chip-type-for-hightpoint-rocketraid-1740-1742.patch +acpica-allow-multiple-backslash-prefix-in-namepaths.patch -- 2.47.3