ARM: unwinder: fix bisection to find origin in .idx section
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thu, 15 Dec 2011 20:47:56 +0000 (21:47 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 15 Dec 2011 22:02:19 +0000 (14:02 -0800)
commitddf5a25c5fdd4cc276edf451871c38002eec0f95
tree6262274a4299ace9b83bc14649049f405c348df0
parent42ebfc61cfcb13af3e638db1c497dcbde7abfed8
ARM: unwinder: fix bisection to find origin in .idx section

The bisection implemented in unwind_find_origin() stopped to early.  If
there is only a single entry left to check the original code just took
the end point as origin which might be wrong.

This was introduced in commit de66a979012d ("ARM: 7187/1: fix unwinding
for XIP kernels").

Reported-and-tested-by: Nick Bowler <nbowler@elliptictech.com>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/arm/kernel/unwind.c