From: Rafael J. Wysocki Date: Mon, 29 Dec 2025 13:27:46 +0000 (+0100) Subject: ACPI: bus: Fix typo under sizeof() in acpi_run_osc() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eed8f21a94f86e1b25d945fabbd50f822781e41d;p=thirdparty%2Flinux.git ACPI: bus: Fix typo under sizeof() in acpi_run_osc() 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 Reviewed-by: Jonathan Cameron Link: https://patch.msgid.link/2817106.mvXUDI8C0e@rafael.j.wysocki --- diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c index 4e04b59463649..06b51886bef87 100644 --- a/drivers/acpi/bus.c +++ b/drivers/acpi/bus.c @@ -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;