From 912c5db17db85b8dc024da9f9579b5b4cdcf784f Mon Sep 17 00:00:00 2001 From: kettenis Date: Tue, 7 Dec 2021 10:15:25 +0000 Subject: [PATCH] Fix parsing of SR_IRQ resource descriptors. ok patrick@, anton@ --- sys/dev/acpi/acpi.c | 4 ++-- 1 file 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 * Copyright (c) 2005 Jordan Hargrave @@ -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; -- 2.20.1