Skip to content

Commit eed8f21

Browse files
committed
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: e532288 ("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
1 parent 06a17f2 commit eed8f21

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/acpi/bus.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ acpi_status acpi_run_osc(acpi_handle handle, struct acpi_osc_context *context)
294294
int ret;
295295

296296
if (!context || !context->cap.pointer ||
297-
context->cap.length < 2 * sizeof(32) ||
297+
context->cap.length < 2 * sizeof(u32) ||
298298
guid_parse(context->uuid_str, &guid))
299299
return AE_BAD_PARAMETER;
300300

0 commit comments

Comments
 (0)