mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-29 07:34:06 +08:00
ACPICA: Fix a regression in the acpi_evaluate_object_type() interface
ACPICA commit 9ab548ef154b992208524d61770caca90a9762be The optional Pathname parameter inadvertently became required. Introduced in April 2017. Link: https://github.com/acpica/acpica/commit/9ab548ef Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Erik Schmauss <erik.schmauss@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
6be2d72b18
commit
896bece7ec
@ -61,10 +61,10 @@ static void acpi_ns_resolve_references(struct acpi_evaluate_info *info);
|
||||
*
|
||||
* PARAMETERS: handle - Object handle (optional)
|
||||
* pathname - Object pathname (optional)
|
||||
* external_params - List of parameters to pass to method,
|
||||
* external_params - List of parameters to pass to a method,
|
||||
* terminated by NULL. May be NULL
|
||||
* if no parameters are being passed.
|
||||
* return_buffer - Where to put method's return value (if
|
||||
* return_buffer - Where to put the object's return value (if
|
||||
* any). If NULL, no value is returned.
|
||||
* return_type - Expected type of return object
|
||||
*
|
||||
@ -100,13 +100,14 @@ acpi_evaluate_object_typed(acpi_handle handle,
|
||||
free_buffer_on_error = TRUE;
|
||||
}
|
||||
|
||||
/* Get a handle here, in order to build an error message if needed */
|
||||
|
||||
target_handle = handle;
|
||||
if (pathname) {
|
||||
status = acpi_get_handle(handle, pathname, &target_handle);
|
||||
if (ACPI_FAILURE(status)) {
|
||||
return_ACPI_STATUS(status);
|
||||
}
|
||||
} else {
|
||||
target_handle = handle;
|
||||
}
|
||||
|
||||
full_pathname = acpi_ns_get_external_pathname(target_handle);
|
||||
|
Loading…
Reference in New Issue
Block a user