sh: stacktrace: Properly terminate the trace entry buffer.
authorPaul Mundt <lethal@linux-sh.org>
Fri, 14 Aug 2009 16:11:37 +0000 (01:11 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 14 Aug 2009 16:11:37 +0000 (01:11 +0900)
commit606b4c992f3b28f906100f1b6eb49059909d8da7
tree921f604e14276a2b55286fcfa13797f61e6d4240
parentf9967e23c10f025d85bbf66a2a5f18f016890ccb
sh: stacktrace: Properly terminate the trace entry buffer.

This inserts a ULONG_MAX entry at the end of the valid entries in the
stack trace buffer so the default code doesn't need to scan to the end of
available slots. This also makes the trace buffer termination behaviour
consistent with the other architectures.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/stacktrace.c