Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 336650
b: refs/heads/master
c: bee6dc3
h: refs/heads/master
v: v3
  • Loading branch information
Feng Tang authored and Rafael J. Wysocki committed Nov 14, 2012
1 parent 67f80ea commit 3fdb29d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: abf95c362929ce0af7dd413f981597c5386f749d
refs/heads/master: bee6dc39cfa4be083e8c11cee0867eb7dc56895b
9 changes: 9 additions & 0 deletions trunk/drivers/acpi/acpica/rscalc.c
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,15 @@ acpi_rs_get_list_length(u8 * aml_buffer,
* Get the number of vendor data bytes
*/
extra_struct_bytes = resource_length;

/*
* There is already one byte included in the minimum
* descriptor size. If there are extra struct bytes,
* subtract one from the count.
*/
if (extra_struct_bytes) {
extra_struct_bytes--;
}
break;

case ACPI_RESOURCE_NAME_END_TAG:
Expand Down

0 comments on commit 3fdb29d

Please sign in to comment.