]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ACPI: bus: Fix typo under sizeof() in acpi_run_osc()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 29 Dec 2025 13:27:46 +0000 (14:27 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 2 Jan 2026 12:09:43 +0000 (13:09 +0100)
The sizeof(32) in acpi_run_osc() should be sizeof(u32), so fix it.

Fixes: e5322888e6bf ("ACPI: bus: Rework the handling of \_SB._OSC platform features")
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Link: https://patch.msgid.link/2817106.mvXUDI8C0e@rafael.j.wysocki
drivers/acpi/bus.c

index 4e04b594636491e9d99d6329f1d00c103dc78f8e..06b51886bef87417ad4f337a784d56390a9b1b9d 100644 (file)
@@ -294,7 +294,7 @@ acpi_status acpi_run_osc(acpi_handle handle, struct acpi_osc_context *context)
        int ret;
 
        if (!context || !context->cap.pointer ||
-           context->cap.length < 2 * sizeof(32) ||
+           context->cap.length < 2 * sizeof(u32) ||
            guid_parse(context->uuid_str, &guid))
                return AE_BAD_PARAMETER;