]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: ftrace: correct the condition logic in function graph tracer
authorZong Li <zong.li@sifive.com>
Mon, 23 Dec 2019 08:46:13 +0000 (16:46 +0800)
committerPaul Walmsley <paul.walmsley@sifive.com>
Fri, 3 Jan 2020 08:56:37 +0000 (00:56 -0800)
commit84b960a733eca108b52f66e77f937ead5a0922b5
tree3d83f684825cbaebff1a71c225970e226768442d
parentd6457e63fcaf7ec29b15916496eafd6056757946
riscv: ftrace: correct the condition logic in function graph tracer

The condition should be logical NOT to assign the hook address to parent
address. Because the return value 0 of function_graph_enter upon
success.

Fixes: bae083c60a0f (riscv/function_graph: Simplify with function_graph_enter())
Signed-off-by: Zong Li <zong.li@sifive.com>
Reviewed-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Cc: stable@vger.kernel.org
Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com>
arch/riscv/kernel/ftrace.c