From 4ef601c3e5ce00606b0301cb2ade729e625fb769 Mon Sep 17 00:00:00 2001 From: njl Date: Wed, 5 Nov 2003 20:51:25 +0000 Subject: Fix a bug in iasl(8) that caused it to core dump while parsing a DSDT on ia64. The bug is present in i386 as well but didn't show up due to more relaxed page protections. This fix has been submitted to the vendor. Submitted by: marcel --- sys/contrib/dev/acpica/dmresrc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/contrib/dev/acpica/dmresrc.c') diff --git a/sys/contrib/dev/acpica/dmresrc.c b/sys/contrib/dev/acpica/dmresrc.c index 0fb4cb5..fe1d81b 100644 --- a/sys/contrib/dev/acpica/dmresrc.c +++ b/sys/contrib/dev/acpica/dmresrc.c @@ -435,7 +435,7 @@ AcpiDmIsResourceDescriptor ( /* The list must have a valid END_TAG */ - if (ByteData[ByteCount-2] != (ACPI_RDESC_TYPE_END_TAG | 1)) + if (ByteData[ByteCount-1] != (ACPI_RDESC_TYPE_END_TAG | 1)) { return FALSE; } -- cgit v1.1