Skip to contentSkip to conversation

ACPI: bus: Fix typo under sizeof() in acpi_run_osc()

PATCH In review Rafael J. Wysocki 3 participants 3 messages Dec 29, 2025 – Jan 6 ACPI

lore
Share & tools
lore

Rafael J. Wysocki

author maintainer
#0 lore raw

PATCH 1/1 ACPI: bus: Fix typo under sizeof() in acpi_run_osc()

From: Rafael J. Wysocki <[email protected]> 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")

---

Commit e5322888e6bf is a linux-next one.

---
 drivers/acpi/bus.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/acpi/bus.c +1 -1
@@ -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;
 
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · On Mon, 29 Dec 2025 14:27:46 +0100 "Rafael J. Wysocki" <[email protected]>…

From: Rafael J. Wysocki <[email protected]> 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")
Quoted 23 lines

---

Commit e5322888e6bf is a linux-next one.

---
 drivers/acpi/bus.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/acpi/bus.c +1 -1
@@ -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;
 
#2 lore raw
In reply to Rafael J. Wysocki
Quoted 7 lines · Rafael J. Wysocki

From: Rafael J. Wysocki <[email protected]> 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")
Quoted 22 lines

---

Commit e5322888e6bf is a linux-next one.

---
  drivers/acpi/bus.c |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/acpi/bus.c +1 -1
@@ -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;