ARM: 7913/1: fix framepointer check in unwind_frame
authorKonstantin Khlebnikov <k.khlebnikov@samsung.com>
Thu, 5 Dec 2013 13:23:48 +0000 (14:23 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 9 Dec 2013 23:24:33 +0000 (23:24 +0000)
commit3abb6671a9c04479c4bd026798a05f857393b7e2
treec27d0ed62506b334564c7223616b783f4a1a35a8
parent1b15ec7a7427d4188ba91b9bbac696250a059d22
ARM: 7913/1: fix framepointer check in unwind_frame

This patch fixes corner case when (fp + 4) overflows unsigned long,
for example: fp = 0xFFFFFFFF -> fp + 4 == 3.

Cc: <stable@vger.kernel.org>
Signed-off-by: Konstantin Khlebnikov <k.khlebnikov@samsung.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/stacktrace.c