mirror of
https://github.com/acpica/acpica/
synced 2025-01-13 04:49:18 +03:00
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:
parent
a28a14bc42
commit
d42be86052
@ -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;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user