diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2021-12-07 10:15:26 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2021-12-07 10:15:26 +0000 |
commit | dc10b7850dae73ae8db181de5c5650274da52c6c (patch) | |
tree | 594eb428860322809c652bbdd4801d1199b0c1e1 /sys/dev/acpi | |
parent | b86b52a9aa1a5a3e0d2b0a79c0b2929992110e56 (diff) |
Fix parsing of SR_IRQ resource descriptors.
ok patrick@, anton@
Diffstat (limited to 'sys/dev/acpi')
-rw-r--r-- | sys/dev/acpi/acpi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c index 7577424e8a2..1bf5eb134ab 100644 --- a/sys/dev/acpi/acpi.c +++ b/sys/dev/acpi/acpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpi.c,v 1.401 2021/11/02 02:17:56 deraadt Exp $ */ +/* $OpenBSD: acpi.c,v 1.402 2021/12/07 10:15:25 kettenis Exp $ */ /* * Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com> * Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org> @@ -3272,7 +3272,7 @@ acpi_parse_resources(int crsidx, union acpi_resource *crs, void *arg) case SR_IRQ: aaa->aaa_irq[aaa->aaa_nirq] = ffs(crs->sr_irq.irq_mask) - 1; /* Default is exclusive, active-high, edge triggered. */ - if (AML_CRSLEN(crs) < 3) + if (AML_CRSLEN(crs) < 4) flags = SR_IRQ_MODE; else flags = crs->sr_irq.irq_flags; |