summaryrefslogtreecommitdiff
path: root/arch/riscv
diff options
context:
space:
mode:
authorDavid Abdurachmanov <david.abdurachmanov@gmail.com>2018-12-06 16:26:34 +0100
committerPalmer Dabbelt <palmer@sifive.com>2019-01-07 08:22:43 -0800
commit775800b0f1d7303d4fd8ce0e0d9eca4ff2f338f2 (patch)
tree6f92ba601a44b15e8644f33fbf229d7eff52dc42 /arch/riscv
parent008e901b70282183b52ee80d838d2994b2610231 (diff)
riscv: fix trace_sys_exit hook
Fix compilation error. Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com> Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Diffstat (limited to 'arch/riscv')
-rw-r--r--arch/riscv/kernel/ptrace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/kernel/ptrace.c b/arch/riscv/kernel/ptrace.c
index a34c98b49dcb..2ae5e0284f56 100644
--- a/arch/riscv/kernel/ptrace.c
+++ b/arch/riscv/kernel/ptrace.c
@@ -179,6 +179,6 @@ void do_syscall_trace_exit(struct pt_regs *regs)
#ifdef CONFIG_HAVE_SYSCALL_TRACEPOINTS
if (test_thread_flag(TIF_SYSCALL_TRACEPOINT))
- trace_sys_exit(regs, regs->regs[0]);
+ trace_sys_exit(regs, regs_return_value(regs));
#endif
}