summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpica
diff options
context:
space:
mode:
authorBob Moore <robert.moore@intel.com>2012-03-21 09:44:00 +0800
committerLen Brown <len.brown@intel.com>2012-03-22 01:45:57 -0400
commita1acd22f7c6032e8394df7d8adee1a7cdad28b74 (patch)
treebbefc366d4c8c7dea0e04b0c4e00878d9d8f5658 /drivers/acpi/acpica
parent4efeeecd884de36b77c64489dee7eb7ca4d6bed0 (diff)
downloadop-kernel-dev-a1acd22f7c6032e8394df7d8adee1a7cdad28b74.zip
op-kernel-dev-a1acd22f7c6032e8394df7d8adee1a7cdad28b74.tar.gz
ACPICA: Change exception code for invalid pathname in acpi_evaluate_object
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>
Diffstat (limited to 'drivers/acpi/acpica')
-rw-r--r--drivers/acpi/acpica/nsutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/acpica/nsutils.c b/drivers/acpi/acpica/nsutils.c
index a535b7a..7511375 100644
--- a/drivers/acpi/acpica/nsutils.c
+++ b/drivers/acpi/acpica/nsutils.c
@@ -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 */
OpenPOWER on IntegriCloud