Resource Mgr: Small fix for buffer size calculation.

Fixes a one byte error in the output buffer calculation
Feng Tang. ACPICA BZ 849.
This commit is contained in:
Robert Moore 2012-09-26 13:45:01 -07:00
parent a28a14bc42
commit d42be86052

View File

@ -554,6 +554,16 @@ AcpiRsGetListLength (
* Get the number of vendor data bytes
*/
ExtraStructBytes = ResourceLength;
/*
* There is already one byte included in the minimum
* descriptor size. If there are extra struct bytes,
* subtract one from the count.
*/
if (ExtraStructBytes)
{
ExtraStructBytes--;
}
break;