Skip to content

Commit 23b5bbe

Browse files
committed
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.
1 parent 9e63bf9 commit 23b5bbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/components/utilities/utresrc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ AcpiUtWalkAmlResources (
544544
* The absolute minimum resource template is one EndTag descriptor.
545545
* However, we will treat a lone EndTag as just a simple buffer.
546546
*/
547-
if (AmlLength <= sizeof (AML_RESOURCE_END_TAG))
547+
if (AmlLength < sizeof (AML_RESOURCE_END_TAG))
548548
{
549549
return_ACPI_STATUS (AE_AML_NO_RESOURCE_END_TAG);
550550
}

0 commit comments

Comments
 (0)