From: Bob Moore Date: Wed, 21 Mar 2012 01:44:00 +0000 (+0800) Subject: ACPICA: Change exception code for invalid pathname in acpi_evaluate_object X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a1acd22f7c6032e8394df7d8adee1a7cdad28b74;p=linux-beck.git 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 Signed-off-by: Lin Ming Signed-off-by: Len Brown --- diff --git a/drivers/acpi/acpica/nsutils.c b/drivers/acpi/acpica/nsutils.c index a535b7afda5c..75113759f69d 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 */