ACPICA: Resource Mgr: Prevent infinite loops in resource walks
authorBob Moore <robert.moore@intel.com>
Fri, 8 Mar 2013 09:19:38 +0000 (09:19 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 11 Mar 2013 23:45:03 +0000 (00:45 +0100)
commitc13085e519e8984fede41fa3d6a5502523b10996
treec993b660f58d41ab46b93c4a810517de6f9ab072
parentf6161aa153581da4a3867a2d1a7caf4be19b6ec9
ACPICA: Resource Mgr: Prevent infinite loops in resource walks

Add checks for zero-length resource descriptors in all code that
loops through a resource descriptor list. This prevents possible
infinite loops because the length is used to increment the traveral
pointer and detect the end-of-descriptor.

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpica/rscalc.c
drivers/acpi/acpica/rsdump.c
drivers/acpi/acpica/rslist.c
drivers/acpi/acpica/rsxface.c