From: Rafael J. Wysocki Date: Mon, 22 Dec 2025 19:18:40 +0000 (+0100) Subject: ACPI: bus: Rename label and use ACPI_FREE() in acpi_run_osc() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ada805104d4fd89504206216f297c112382bfd1;p=thirdparty%2Fkernel%2Flinux.git ACPI: bus: Rename label and use ACPI_FREE() in acpi_run_osc() Use ACPI_FREE() for freeing an object coming from acpi_eval_osc() and rename the "out_free" to "out" because it does not involve kfree() any more. No intentional functional impact. Signed-off-by: Rafael J. Wysocki Reviewed-by: Jonathan Cameron Link: https://patch.msgid.link/8682086.NyiUUSuA9g@rafael.j.wysocki --- diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c index 13ac46a70adb9..2232cb872a94e 100644 --- a/drivers/acpi/bus.c +++ b/drivers/acpi/bus.c @@ -308,19 +308,19 @@ acpi_status acpi_run_osc(acpi_handle handle, struct acpi_osc_context *context) if (acpi_osc_error_check(handle, &guid, context->rev, &context->cap, retbuf)) { status = AE_ERROR; - goto out_kfree; + goto out; } context->ret.length = out_obj->buffer.length; context->ret.pointer = kmemdup(retbuf, context->ret.length, GFP_KERNEL); if (!context->ret.pointer) { status = AE_NO_MEMORY; - goto out_kfree; + goto out; } status = AE_OK; -out_kfree: - kfree(output.pointer); +out: + ACPI_FREE(out_obj); return status; } EXPORT_SYMBOL(acpi_run_osc);