]> 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)
commitd7df3c3a44e4acf97ec6b80a7882d9f2c07cf154
tree6262274a4299ace9b83bc14649049f405c348df0
parent4177d606e7f27091cf894ec0f80886508f20a0b7
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 fc85a7924592 ("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