Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 367578
b: refs/heads/master
c: 02d4fb3
h: refs/heads/master
v: v3
  • Loading branch information
Bob Moore authored and Rafael J. Wysocki committed Mar 11, 2013
1 parent faad647 commit a566f79
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 40411255c89eb382ed695933155a606c000d855e
refs/heads/master: 02d4fb36867c33f7e0cec8d6e6dad47ad712a497
10 changes: 8 additions & 2 deletions trunk/drivers/acpi/acpica/nsprepkg.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,15 @@ acpi_ns_check_package(struct acpi_predefined_data *data,
elements = return_object->package.elements;
count = return_object->package.count;

/* The package must have at least one element, else invalid */

/*
* Most packages must have at least one element. The only exception
* is the variable-length package (ACPI_PTYPE1_VAR).
*/
if (!count) {
if (package->ret_info.type == ACPI_PTYPE1_VAR) {
return (AE_OK);
}

ACPI_WARN_PREDEFINED((AE_INFO, data->pathname, data->node_flags,
"Return Package has no elements (empty)"));

Expand Down

0 comments on commit a566f79

Please sign in to comment.