]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit291f98e2c855f1f57f373a6a181decdcbf480c80
tree6262274a4299ace9b83bc14649049f405c348df0
parentc258741dca563c432c0eb47101982a4aad62b958
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 a90f630a3f27 ("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