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:
parent
7bc04cb5a9
commit
0032330289
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user