diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2017-06-29 18:42:13 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2017-06-29 18:42:13 +0000 |
commit | 744d47ba98ced2e2a7d3aff2f894136544386e34 (patch) | |
tree | 917f6a025e019c7b80e50a45fa783593b4e3c19e /source/components/utilities | |
parent | c457a42be4fca72c51fdca569271b62213d01a37 (diff) |
Notes
Diffstat (limited to 'source/components/utilities')
-rw-r--r-- | source/components/utilities/utresrc.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/source/components/utilities/utresrc.c b/source/components/utilities/utresrc.c index 8131cde2f834c..e34662c809d1e 100644 --- a/source/components/utilities/utresrc.c +++ b/source/components/utilities/utresrc.c @@ -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); } @@ -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); } |