mirror of
https://github.com/torvalds/linux.git
synced 2026-01-12 00:42:35 +08:00
ACPI: sysfs: Use ACPI_FREE() for freeing an ACPI object
Since str_obj is allocated by ACPICA in acpi_evaluate_object_typed(), it should be free with ACPI_FREE() rather than with kfree(), so use the former instead of the latter for freeing it. Signed-off-by: Kaushlendra Kumar <kaushlendra.kumar@intel.com> Link: https://patch.msgid.link/20250822061946.472594-1-kaushlendra.kumar@intel.com [ rjw: Subject and changelog rewrite ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
committed by
Rafael J. Wysocki
parent
1b237f190e
commit
149139ddcb
@@ -464,7 +464,7 @@ static ssize_t description_show(struct device *dev,
|
||||
|
||||
buf[result++] = '\n';
|
||||
|
||||
kfree(str_obj);
|
||||
ACPI_FREE(str_obj);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user