Skip to content

Commit 2f58be8

Browse files
kaushlenrafaeljw
authored andcommitted
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>
1 parent 6146a0f commit 2f58be8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/acpi/dptf/dptf_pch_fivr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ static int pch_fivr_read(acpi_handle handle, char *method, struct pch_fivr_resp
4141
ret = 0;
4242

4343
release_buffer:
44-
kfree(buffer.pointer);
44+
ACPI_FREE(buffer.pointer);
4545
return ret;
4646
}
4747

0 commit comments

Comments
 (0)