iASL: Fix possible segfault for "too many parent prefixes" condition.

Fixes a possible segfault if there are too many parent prefixes
in a namepath (for example, ^^^^^^PCI0.ECRD). ACPICA BZ 1035.
This commit is contained in:
Robert Moore 2013-07-26 12:23:20 -07:00
parent 96f37ef6bf
commit 4f01a9439b

View File

@ -559,6 +559,10 @@ LdNamespace1Begin (
ACPI_TYPE_LOCAL_SCOPE,
ACPI_IMODE_LOAD_PASS1, Flags,
WalkState, &(Node));
if (ACPI_FAILURE (Status))
{
return_ACPI_STATUS (Status);
}
/*
* However, this is an error -- primarily because the MS