ACPICA: Fix to allow zero-length ASL field declarations

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Wednesday, June 11, 2008 - 6:07 pm

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=7aa7d4...
Commit:     7aa7d4336df34e32195557a1ad422627bd69ef0b
Parent:     46a21e465e506bcd4dba759a39e7ef79978a705d
Author:     Bob Moore <robert.moore@intel.com>
AuthorDate: Tue Jun 10 13:00:32 2008 +0800
Committer:  Len Brown <len.brown@intel.com>
CommitDate: Wed Jun 11 19:13:47 2008 -0400

    ACPICA: Fix to allow zero-length ASL field declarations
    
    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>
---
 drivers/acpi/dispatcher/dsfield.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/drivers/acpi/dispatcher/dsfield.c b/drivers/acpi/dispatcher/dsfield.c
index c780783..f988a5e 100644
--- a/drivers/acpi/dispatcher/dsfield.c
+++ b/drivers/acpi/dispatcher/dsfield.c
@@ -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 |
@@ -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) {
 		/*
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
ACPICA: Fix to allow zero-length ASL field declarations, Linux Kernel Mailing ..., (Wed Jun 11, 6:07 pm)