Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a1acd22f authored by Bob Moore's avatar Bob Moore Committed by Len Brown
Browse files

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: default avatarBob Moore <robert.moore@intel.com>
Signed-off-by: default avatarLin Ming <ming.m.lin@intel.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 4efeeecd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 */