Skip to content

Commit

Permalink
ACPICA: Fix to allow zero-length ASL field declarations
Browse files Browse the repository at this point in the history
Allows null field list in Field(), BankField(), and IndexField().

2.6.26-rc1 regression: ACPI fails to load SDT. - Dell M1530
http://bugzilla.kernel.org/show_bug.cgi?id=10606

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
  • Loading branch information
Bob Moore authored and Len Brown committed Jun 11, 2008
1 parent 46a21e4 commit 7aa7d43
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/acpi/dispatcher/dsfield.c
Original file line number Diff line number Diff line change
Expand Up @@ -450,10 +450,6 @@ acpi_ds_init_field_objects(union acpi_parse_object *op,
return_ACPI_STATUS(AE_BAD_PARAMETER);
}

if (!arg) {
return_ACPI_STATUS(AE_AML_NO_OPERAND);
}

/* Creating new namespace node(s), should not already exist */

flags = ACPI_NS_NO_UPSEARCH | ACPI_NS_DONT_OPEN_SCOPE |
Expand All @@ -467,6 +463,7 @@ acpi_ds_init_field_objects(union acpi_parse_object *op,

/*
* Walk the list of entries in the field_list
* Note: field_list can be of zero length. In this case, Arg will be NULL.
*/
while (arg) {
/*
Expand Down

0 comments on commit 7aa7d43

Please sign in to comment.