summaryrefslogtreecommitdiffstats
path: root/sys/contrib/dev/acpica/dmresrc.c
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2003-11-05 20:51:25 +0000
committernjl <njl@FreeBSD.org>2003-11-05 20:51:25 +0000
commit4ef601c3e5ce00606b0301cb2ade729e625fb769 (patch)
tree9d0c2ce4cf5057f0ac849c95646e3229e32c66d6 /sys/contrib/dev/acpica/dmresrc.c
parent45d0402d172b73d9028c888c37e08cbea5da870c (diff)
downloadFreeBSD-src-4ef601c3e5ce00606b0301cb2ade729e625fb769.zip
FreeBSD-src-4ef601c3e5ce00606b0301cb2ade729e625fb769.tar.gz
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
Diffstat (limited to 'sys/contrib/dev/acpica/dmresrc.c')
-rw-r--r--sys/contrib/dev/acpica/dmresrc.c2
1 files changed, 1 insertions, 1 deletions
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;
}
OpenPOWER on IntegriCloud