Skip to content

Commit f812338

Browse files
rjwysockilenb
authored andcommitted
ACPI: Oops in ACPI with git latest
ACPI Warning (nseval-0168): Insufficient arguments - method [_OSC] needs 5, found 4 [20080926] ACPI Warning (nspredef-0252): \_SB_.PCI0._OSC: Parameter count mismatch - ASL declared 5, expected 4 [20080926] ACPI Error (nspredef-0163): \_SB_.PCI0._OSC: Missing expected return value [20080926] BUG: unable to handle kernel NULL pointer dereference at 00000000 IP: [<c0237671>] acpi_run_osc+0xa1/0x170 Signed-off-by: Rafael J. Wysocki <[email protected]> Tested-by: James Bottomley <[email protected]> Signed-off-by: Len Brown <[email protected]>
1 parent 92daa7b commit f812338

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/pci/pci-acpi.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ static acpi_status acpi_run_osc(acpi_handle handle,
8383
if (ACPI_FAILURE(status))
8484
return status;
8585

86+
if (!output.length)
87+
return AE_NULL_OBJECT;
88+
8689
out_obj = output.pointer;
8790
if (out_obj->type != ACPI_TYPE_BUFFER) {
8891
printk(KERN_DEBUG "Evaluate _OSC returns wrong type\n");

0 commit comments

Comments
 (0)