* [PATCH v1] ACPI: bus: Fix typo under sizeof() in acpi_run_osc()
@ 2025-12-29 13:27 Rafael J. Wysocki
2026-01-02 11:37 ` Jonathan Cameron
2026-01-06 22:44 ` Mario Limonciello (AMD) (kernel.org)
0 siblings, 2 replies; 3+ messages in thread
From: Rafael J. Wysocki @ 2025-12-29 13:27 UTC (permalink / raw)
To: Linux ACPI
Cc: Dan Carpenter, Jonathan Cameron, LKML, Srinivas Pandruvada,
Hans de Goede, Mario Limonciello
From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Subject:
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>
---
Commit e5322888e6bf is a linux-next one.
---
drivers/acpi/bus.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/acpi/bus.c
+++ b/drivers/acpi/bus.c
@@ -294,7 +294,7 @@ acpi_status acpi_run_osc(acpi_handle han
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;
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v1] ACPI: bus: Fix typo under sizeof() in acpi_run_osc()
2025-12-29 13:27 [PATCH v1] ACPI: bus: Fix typo under sizeof() in acpi_run_osc() Rafael J. Wysocki
@ 2026-01-02 11:37 ` Jonathan Cameron
2026-01-06 22:44 ` Mario Limonciello (AMD) (kernel.org)
1 sibling, 0 replies; 3+ messages in thread
From: Jonathan Cameron @ 2026-01-02 11:37 UTC (permalink / raw)
To: Rafael J. Wysocki
Cc: Linux ACPI, Dan Carpenter, LKML, Srinivas Pandruvada,
Hans de Goede, Mario Limonciello
On Mon, 29 Dec 2025 14:27:46 +0100
"Rafael J. Wysocki" <rafael@kernel.org> wrote:
> From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
> Subject:
>
> 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>
> ---
>
> Commit e5322888e6bf is a linux-next one.
>
> ---
> drivers/acpi/bus.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> --- a/drivers/acpi/bus.c
> +++ b/drivers/acpi/bus.c
> @@ -294,7 +294,7 @@ acpi_status acpi_run_osc(acpi_handle han
> 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;
>
>
>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v1] ACPI: bus: Fix typo under sizeof() in acpi_run_osc()
2025-12-29 13:27 [PATCH v1] ACPI: bus: Fix typo under sizeof() in acpi_run_osc() Rafael J. Wysocki
2026-01-02 11:37 ` Jonathan Cameron
@ 2026-01-06 22:44 ` Mario Limonciello (AMD) (kernel.org)
1 sibling, 0 replies; 3+ messages in thread
From: Mario Limonciello (AMD) (kernel.org) @ 2026-01-06 22:44 UTC (permalink / raw)
To: Rafael J. Wysocki, Linux ACPI
Cc: Dan Carpenter, Jonathan Cameron, LKML, Srinivas Pandruvada,
Hans de Goede
On 12/29/2025 7:27 AM, Rafael J. Wysocki wrote:
> From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
> Subject:
>
> 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: Mario Limonciello (AMD) <superm1@kernel.org>
> ---
>
> Commit e5322888e6bf is a linux-next one.
>
> ---
> drivers/acpi/bus.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> --- a/drivers/acpi/bus.c
> +++ b/drivers/acpi/bus.c
> @@ -294,7 +294,7 @@ acpi_status acpi_run_osc(acpi_handle han
> 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;
>
>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-01-06 22:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-29 13:27 [PATCH v1] ACPI: bus: Fix typo under sizeof() in acpi_run_osc() Rafael J. Wysocki
2026-01-02 11:37 ` Jonathan Cameron
2026-01-06 22:44 ` Mario Limonciello (AMD) (kernel.org)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox