ACPICA: Resource Manager: Add a pointer cast for a namespace node.
Add a missing cast for a namespace node pointer passed in from an external interface. Reported Rafael Wysocki. Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Lv Zheng <lv.zheng@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
99c93f55a5
commit
0fdce47677
1 changed files with 3 additions and 1 deletions
|
@ -677,7 +677,9 @@ acpi_rs_get_method_data(acpi_handle handle,
|
||||||
/* Execute the method, no parameters */
|
/* Execute the method, no parameters */
|
||||||
|
|
||||||
status =
|
status =
|
||||||
acpi_ut_evaluate_object(handle, path, ACPI_BTYPE_BUFFER, &obj_desc);
|
acpi_ut_evaluate_object(ACPI_CAST_PTR
|
||||||
|
(struct acpi_namespace_node, handle), path,
|
||||||
|
ACPI_BTYPE_BUFFER, &obj_desc);
|
||||||
if (ACPI_FAILURE(status)) {
|
if (ACPI_FAILURE(status)) {
|
||||||
return_ACPI_STATUS(status);
|
return_ACPI_STATUS(status);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue