Skip to content

Commit 149139d

Browse files
kaushlenrafaeljw
authored andcommitted
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>
1 parent 1b237f1 commit 149139d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/acpi/device_sysfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ static ssize_t description_show(struct device *dev,
464464

465465
buf[result++] = '\n';
466466

467-
kfree(str_obj);
467+
ACPI_FREE(str_obj);
468468

469469
return result;
470470
}

0 commit comments

Comments
 (0)