Skip to content

Commit

Permalink
Fix a regression related to resource descriptors
Browse files Browse the repository at this point in the history
This change fixes a problem where some valid descriptors were
incorrectly detected as invalid, and a AE_AML_NO_RESOURCE_END_TAG
was returned.
  • Loading branch information
acpibob committed Dec 21, 2016
1 parent 9e63bf9 commit 23b5bbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/components/utilities/utresrc.c
Expand Up @@ -544,7 +544,7 @@ AcpiUtWalkAmlResources (
* The absolute minimum resource template is one EndTag descriptor.
* However, we will treat a lone EndTag as just a simple buffer.
*/
if (AmlLength <= sizeof (AML_RESOURCE_END_TAG))
if (AmlLength < sizeof (AML_RESOURCE_END_TAG))
{
return_ACPI_STATUS (AE_AML_NO_RESOURCE_END_TAG);
}
Expand Down

0 comments on commit 23b5bbe

Please sign in to comment.