提交 dba47d3a 编写于 作者: L Lv Zheng 提交者: Rafael J. Wysocki

ACPICA: Fix cached object deletion code.

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: NLv Zheng <lv.zheng@intel.com>
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 2faa0464
...@@ -209,10 +209,10 @@ acpi_status acpi_ut_delete_caches(void) ...@@ -209,10 +209,10 @@ acpi_status acpi_ut_delete_caches(void)
/* Free memory lists */ /* Free memory lists */
ACPI_FREE(acpi_gbl_global_list); acpi_os_free(acpi_gbl_global_list);
acpi_gbl_global_list = NULL; 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; acpi_gbl_ns_node_list = NULL;
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册