ACPICA: Fix cached object deletion code.
authorLv Zheng <lv.zheng@intel.com>
Thu, 31 Oct 2013 01:31:00 +0000 (09:31 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 31 Oct 2013 13:37:34 +0000 (14:37 +0100)
Function acpi_ut_delete_caches() is meant to be used to implement
ACPI_ALLOCATE()/ACPI_FREE() mechanisms in ACPICA, so it should call
acpi_os_free() rather than ACPI_FREE().  Linux is not affected by this
issue as it uses kmem_cache instead of the ACPICA local cache, but
the change helps to reduce source code differences between Linux and
ACPICA upstream.

[rjw: Changelog]
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpica/utalloc.c

index d844796..814267f 100644 (file)
@@ -209,10 +209,10 @@ acpi_status acpi_ut_delete_caches(void)
 
        /* Free memory lists */
 
-       ACPI_FREE(acpi_gbl_global_list);
+       acpi_os_free(acpi_gbl_global_list);
        acpi_gbl_global_list = NULL;
 
-       ACPI_FREE(acpi_gbl_ns_node_list);
+       acpi_os_free(acpi_gbl_ns_node_list);
        acpi_gbl_ns_node_list = NULL;
 #endif