Skip to content

Commit e5c399b

Browse files
ardbiesheuvelrafaeljw
authored andcommitted
ACPI: GED: use correct trigger type field in _Exx / _Lxx handling
Commit ea6f3af ("ACPI: GED: add support for _Exx / _Lxx handler methods") added a reference to the 'triggering' field of either the normal or the extended ACPI IRQ resource struct, but inadvertently used the wrong pointer in the latter case. Note that both pointers refer to the same union, and the 'triggering' field appears at the same offset in both struct types, so it currently happens to work by accident. But let's fix it nonetheless Fixes: ea6f3af ("ACPI: GED: add support for _Exx / _Lxx handler methods") Signed-off-by: Ard Biesheuvel <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent ea6f3af commit e5c399b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/acpi/evged.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ static acpi_status acpi_ged_request_interrupt(struct acpi_resource *ares,
9494
trigger = p->triggering;
9595
} else {
9696
gsi = pext->interrupts[0];
97-
trigger = p->triggering;
97+
trigger = pext->triggering;
9898
}
9999

100100
irq = r.start;

0 commit comments

Comments
 (0)