From: Kaushlendra Kumar <kaushlendra.kumar@intel.com>
To: rafael@kernel.org, rui.zhang@intel.com,
srinivas.pandruvada@linux.intel.com, lenb@kernel.org
Cc: linux-acpi@vger.kernel.org,
Kaushlendra Kumar <kaushlendra.kumar@intel.com>
Subject: [PATCH] ACPI / DPTF: Use ACPI_FREE() for ACPI buffer deallocation
Date: Mon, 6 Oct 2025 10:23:20 +0530 [thread overview]
Message-ID: <20251006045320.970534-1-kaushlendra.kumar@intel.com> (raw)
Replace kfree() with ACPI_FREE() in pch_fivr_read() for deallocating
ACPI buffer objects. The buffer.pointer contains an ACPI object allocated
through ACPI subsystem functions and should be freed using ACPI_FREE()
to ensure proper cleanup and maintain consistency with ACPI memory
management conventions.
Signed-off-by: Kaushlendra Kumar <kaushlendra.kumar@intel.com>
---
drivers/acpi/dptf/dptf_pch_fivr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/acpi/dptf/dptf_pch_fivr.c b/drivers/acpi/dptf/dptf_pch_fivr.c
index 952216c67d58..8d7e555929d3 100644
--- a/drivers/acpi/dptf/dptf_pch_fivr.c
+++ b/drivers/acpi/dptf/dptf_pch_fivr.c
@@ -41,7 +41,7 @@ static int pch_fivr_read(acpi_handle handle, char *method, struct pch_fivr_resp
ret = 0;
release_buffer:
- kfree(buffer.pointer);
+ ACPI_FREE(buffer.pointer);
return ret;
}
--
2.34.1
next reply other threads:[~2025-10-06 4:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-06 4:53 Kaushlendra Kumar [this message]
2025-10-22 19:01 ` [PATCH] ACPI / DPTF: Use ACPI_FREE() for ACPI buffer deallocation Rafael J. Wysocki
2025-10-28 5:20 ` Kumar, Kaushlendra
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251006045320.970534-1-kaushlendra.kumar@intel.com \
--to=kaushlendra.kumar@intel.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=rafael@kernel.org \
--cc=rui.zhang@intel.com \
--cc=srinivas.pandruvada@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).