On Fri, Aug 22, 2025 at 8:21 AM Kaushlendra Kumar <kaushlendra.kumar@xxxxxxxxx> wrote: > > Replace kfree() with ACPI_FREE() for deallocating ACPI objects in the > description_show() function. > > The str_obj variable contains an ACPI object that was allocated through > ACPI subsystem functions. Such objects should be freed using ACPI_FREE() > rather than the generic kfree() to ensure proper cleanup and maintain > consistency with ACPI memory management conventions. > > Signed-off-by: Kaushlendra Kumar <kaushlendra.kumar@xxxxxxxxx> > --- > drivers/acpi/device_sysfs.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/acpi/device_sysfs.c b/drivers/acpi/device_sysfs.c > index 3961fc47152c..cd199fbe4dc9 100644 > --- a/drivers/acpi/device_sysfs.c > +++ b/drivers/acpi/device_sysfs.c > @@ -464,7 +464,7 @@ static ssize_t description_show(struct device *dev, > > buf[result++] = '\n'; > > - kfree(str_obj); > + ACPI_FREE(str_obj); > > return result; > } > -- Applied as 6.18 material under a modified subject and with a new changelog. Thanks!