Commit eed8f21a authored by Rafael J. Wysocki's avatar Rafael J. Wysocki
Browse files

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: e5322888 ("ACPI: bus: Rework the handling of \_SB._OSC platform features")
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: default avatarJonathan Cameron <jonathan.cameron@huawei.com>
Link: https://patch.msgid.link/2817106.mvXUDI8C0e@rafael.j.wysocki
parent 06a17f2b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;