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
This commit is contained in:
Nate Lawson 2003-11-05 20:51:25 +00:00
parent 050b6a0427
commit 0e4c356acf

View File

@ -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;
}