Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ACPI: DPTF: Use ACPI_FREE() for ACPI buffer deallocation

Replace kfree() with ACPI_FREE() in pch_fivr_read() to follow ACPICA
memory management conventions.

While functionally equivalent in Linux (ACPI_FREE() is implemented
as kfree()), using ACPI_FREE() maintains consistency with ACPICA
coding standards for deallocating ACPI buffer objects.

Signed-off-by: Kaushlendra Kumar <kaushlendra.kumar@intel.com>
[ rjw: Subject and changelog edits ]
Link: https://patch.msgid.link/20251028051554.2862049-1-kaushlendra.kumar@intel.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Kaushlendra Kumar and committed by
Rafael J. Wysocki
2f58be82 6146a0f1

+1 -1
+1 -1
drivers/acpi/dptf/dptf_pch_fivr.c
··· 41 41 ret = 0; 42 42 43 43 release_buffer: 44 - kfree(buffer.pointer); 44 + ACPI_FREE(buffer.pointer); 45 45 return ret; 46 46 } 47 47