Commit 4e7b4ff2 authored by Jinjie Ruan's avatar Jinjie Ruan Committed by Russell King (Oracle)
Browse files

ARM: 9406/1: Fix callchain_trace() return value



perf_callchain_store() return 0 on success, -1 otherwise, fix
callchain_trace() to return correct bool value. So walk_stackframe() can
have a chance to stop walking the stack ahead.

Fixes: 70ccc7c0 ("ARM: 9258/1: stacktrace: Make stack walk callback consistent with generic code")
Signed-off-by: default avatarJinjie Ruan <ruanjinjie@huawei.com>
Signed-off-by: default avatarRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
parent e3cf20e5
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -85,8 +85,7 @@ static bool
callchain_trace(void *data, unsigned long pc)
{
	struct perf_callchain_entry_ctx *entry = data;
	perf_callchain_store(entry, pc);
	return true;
	return perf_callchain_store(entry, pc) == 0;
}

void