From: Lv Zheng Date: Thu, 21 Nov 2013 04:17:34 +0000 (+0800) Subject: ACPICA: Resources: Fix loop termination for the get AML length function. X-Git-Tag: v3.13-rc2~19^2~2^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a0a35972591f91167556b4a61673d08ef07f310;p=pandora-kernel.git ACPICA: Resources: Fix loop termination for the get AML length function. The loop terminates on a NULL resource pointer, which can never happen since the loop simply increments a valid resource pointer. This fix changes the loop to terminate on an end-of-buffer condition. Problem can be seen by callers to AcpiSetCurrentResources with an invalid or corrupted resource descriptor; or a resource descriptor without an END_TAG descriptor. (refined by Bob Moore) Reported-by: Dan Carpenter Signed-off-by: Lv Zheng Signed-off-by: Bob Moore Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed