Skip to content

Commit

Permalink
ACPICA: Fix cached object deletion code.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lv Zheng authored and Rafael J. Wysocki committed Oct 31, 2013
1 parent 2faa046 commit dba47d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/acpi/acpica/utalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit dba47d3

Please sign in to comment.