diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2013-05-05 08:24:42 +0200 | 
|---|---|---|
| committer | Thomas Gleixner <tglx@linutronix.de> | 2013-05-05 08:27:03 +0200 | 
| commit | f99e44a7f3352d7131c7526207f153f13ec5acd4 (patch) | |
| tree | 0f448b21128c478053ee7f7765b865954c4eebe8 /drivers/acpi/acpica/rsdump.c | |
| parent | fd29f424d458118f02e89596505c68a63dcb3007 (diff) | |
| parent | ce857229e0c3adc211944a13a5579ef84fd7b4af (diff) | |
Merge branch 'linus' into core/urgent
Update with Linus tree so fixes for the same can be applied.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'drivers/acpi/acpica/rsdump.c')
| -rw-r--r-- | drivers/acpi/acpica/rsdump.c | 8 | 
1 files changed, 8 insertions, 0 deletions
| diff --git a/drivers/acpi/acpica/rsdump.c b/drivers/acpi/acpica/rsdump.c index cab51445189d..b5fc0db2e87b 100644 --- a/drivers/acpi/acpica/rsdump.c +++ b/drivers/acpi/acpica/rsdump.c @@ -385,6 +385,14 @@ void acpi_rs_dump_resource_list(struct acpi_resource *resource_list)  			return;  		} +		/* Sanity check the length. It must not be zero, or we loop forever */ + +		if (!resource_list->length) { +			acpi_os_printf +			    ("Invalid zero length descriptor in resource list\n"); +			return; +		} +  		/* Dump the resource descriptor */  		if (type == ACPI_RESOURCE_TYPE_SERIAL_BUS) { | 
