diff options
author | njl <njl@FreeBSD.org> | 2003-11-05 20:51:25 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2003-11-05 20:51:25 +0000 |
commit | 4ef601c3e5ce00606b0301cb2ade729e625fb769 (patch) | |
tree | 9d0c2ce4cf5057f0ac849c95646e3229e32c66d6 /sys/contrib | |
parent | 45d0402d172b73d9028c888c37e08cbea5da870c (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/contrib/dev/acpica/dmresrc.c | 2 |
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; } |