diff options
author | jkim <jkim@FreeBSD.org> | 2012-10-19 18:47:57 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2012-10-19 18:47:57 +0000 |
commit | d8cd02b5b5893df382c08566087e32fe5b0c3abb (patch) | |
tree | 5e268c18ae0fa3ec73e13e2af60a3be57d8393ec /source/components/resources/rscalc.c | |
parent | da9b951a892d96e0521abeec09d4345ddf04ab8d (diff) | |
download | FreeBSD-src-d8cd02b5b5893df382c08566087e32fe5b0c3abb.zip FreeBSD-src-d8cd02b5b5893df382c08566087e32fe5b0c3abb.tar.gz |
Import ACPICA 20121018.
Diffstat (limited to 'source/components/resources/rscalc.c')
-rw-r--r-- | source/components/resources/rscalc.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/source/components/resources/rscalc.c b/source/components/resources/rscalc.c index 845ed69..12af85e 100644 --- a/source/components/resources/rscalc.c +++ b/source/components/resources/rscalc.c @@ -482,6 +482,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; @@ -626,7 +636,7 @@ AcpiRsGetPciRoutingTableLength ( /* * Calculate the size of the return buffer. * The base size is the number of elements * the sizes of the - * structures. Additional space for the strings is added below. + * structures. Additional space for the strings is added below. * The minus one is to subtract the size of the UINT8 Source[1] * member because it is added below. * |