Permalink
Browse files

Fix a regression related to resource descriptors

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 23b5bbe6d78afd3c5abf3adb91a1b098a3000b2e
Showing with 1 addition and 1 deletion.
  1. +1 −1 source/components/utilities/utresrc.c
@@ -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);
}

0 comments on commit 23b5bbe

Please sign in to comment.