Account for the minimum resource size when parsing the end tag resource

descriptor.  This should fix the "memory modified after free" panics.  This
patch will appear in a future acpi-ca distribution.

Submitted by:	Robert Moore <robert.moore / intel.com>
Tested by:	Peter Holm
This commit is contained in:
njl 2005-11-04 20:15:09 +00:00
parent 7bc04cb5a9
commit 0032330289

View File

@ -514,12 +514,10 @@ AcpiRsGetListLength (
case ACPI_RESOURCE_NAME_END_TAG:
/*
* End Tag:
* Terminate the loop now
* End Tag: This is the normal exit, add size of EndTag
*/
AmlBufferLength = BytesParsed;
break;
*SizeNeeded = BufferSize + ACPI_RS_SIZE_MIN;
return_ACPI_STATUS (AE_OK);
default:
break;