ACPICA: Change exception code for invalid pathname in acpi_evaluate_object
authorBob Moore <robert.moore@intel.com>
Wed, 21 Mar 2012 01:44:00 +0000 (09:44 +0800)
committerLen Brown <len.brown@intel.com>
Thu, 22 Mar 2012 05:45:57 +0000 (01:45 -0400)
Change the returned exception code from AE_BAD_PARAMETER to the
more appropriate AE_BAD_PATHNAME, when the input pathname to
evaluate object is invalid.

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/acpica/nsutils.c

index a535b7a..7511375 100644 (file)
@@ -341,7 +341,7 @@ acpi_status acpi_ns_build_internal_name(struct acpi_namestring_info *info)
 
                if (!acpi_ns_valid_path_separator(*external_name) &&
                    (*external_name != 0)) {
-                       return_ACPI_STATUS(AE_BAD_PARAMETER);
+                       return_ACPI_STATUS(AE_BAD_PATHNAME);
                }
 
                /* Move on the next segment */