Skip to content

Commit

Permalink
Revert "Update resource descriptor handling"
Browse files Browse the repository at this point in the history
This reverts commit c8eac10.
  • Loading branch information
Erik Schmauss committed Jun 27, 2017
1 parent b4be602 commit f330064
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions source/components/utilities/utresrc.c
Expand Up @@ -303,11 +303,9 @@ AcpiUtWalkAmlResources (
ACPI_FUNCTION_TRACE (UtWalkAmlResources);


/*
* 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))
/* The absolute minimum resource template is one EndTag descriptor */

if (AmlLength < sizeof (AML_RESOURCE_END_TAG))
{
return_ACPI_STATUS (AE_AML_NO_RESOURCE_END_TAG);
}
Expand Down Expand Up @@ -378,10 +376,8 @@ AcpiUtWalkAmlResources (
*Context = Aml;
}

/*
* Normal exit. Note: We allow the buffer to be larger than
* the resource template, as long as the END_TAG exists.
*/
/* Normal exit */

return_ACPI_STATUS (AE_OK);
}

Expand Down

0 comments on commit f330064

Please sign in to comment.