diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2012-12-31 00:05:58 +0000 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-01-10 12:36:20 +0100 |
commit | 0fdce47677be8d86408d2beef6fda3dc4c7edf56 (patch) | |
tree | 47b32bd36408b116a41cc43b23bf839adf8d0e5d /drivers/acpi/acpica | |
parent | 99c93f55a5eeccdc902da0396a8f9b4ec8a55c63 (diff) | |
download | linux-0fdce47677be8d86408d2beef6fda3dc4c7edf56.tar.gz linux-0fdce47677be8d86408d2beef6fda3dc4c7edf56.tar.bz2 linux-0fdce47677be8d86408d2beef6fda3dc4c7edf56.zip |
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>
Diffstat (limited to 'drivers/acpi/acpica')
-rw-r--r-- | drivers/acpi/acpica/rsutils.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/acpi/acpica/rsutils.c b/drivers/acpi/acpica/rsutils.c index 5adae5a036aa..41b8103911fc 100644 --- a/drivers/acpi/acpica/rsutils.c +++ b/drivers/acpi/acpica/rsutils.c @@ -677,7 +677,9 @@ acpi_rs_get_method_data(acpi_handle handle, /* Execute the method, no parameters */ 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)) { return_ACPI_STATUS(status); } |