[0/2] change to use ACPI_FREE() to free the ACPI memory

Message ID 20221118063219.2612473-1-bobo.shaobowang@huawei.com
Headers
Series change to use ACPI_FREE() to free the ACPI memory |

Message

Wangshaobo (bobo) Nov. 18, 2022, 6:32 a.m. UTC
  acpi_evaluate_dsm_typed()/acpi_evaluate_dsm() should be coupled with
ACPI_FREE() to free the ACPI memory, because we need to track the
allocation of acpi_object when ACPI_DBG_TRACK_ALLOCATIONS enabled,
so use ACPI_FREE() instead of kfree().

Wang ShaoBo (2):
  ACPI: pfr_telemetry: use ACPI_FREE() to free acpi_object
  ACPI: pfr_update: use ACPI_FREE() to free acpi_object

 drivers/acpi/pfr_telemetry.c | 6 +++---
 drivers/acpi/pfr_update.c    | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)
  

Comments

Rafael J. Wysocki Nov. 23, 2022, 6:30 p.m. UTC | #1
On Fri, Nov 18, 2022 at 7:33 AM Wang ShaoBo <bobo.shaobowang@huawei.com> wrote:
>
> acpi_evaluate_dsm_typed()/acpi_evaluate_dsm() should be coupled with
> ACPI_FREE() to free the ACPI memory, because we need to track the
> allocation of acpi_object when ACPI_DBG_TRACK_ALLOCATIONS enabled,
> so use ACPI_FREE() instead of kfree().
>
> Wang ShaoBo (2):
>   ACPI: pfr_telemetry: use ACPI_FREE() to free acpi_object
>   ACPI: pfr_update: use ACPI_FREE() to free acpi_object
>
>  drivers/acpi/pfr_telemetry.c | 6 +++---
>  drivers/acpi/pfr_update.c    | 6 +++---
>  2 files changed, 6 insertions(+), 6 deletions(-)
>
> --

Both applied as 6.2 material, thanks!