diff options
author | David Abdurachmanov <david.abdurachmanov@gmail.com> | 2018-12-06 18:26:34 +0300 |
---|---|---|
committer | Palmer Dabbelt <palmer@sifive.com> | 2019-01-07 19:22:43 +0300 |
commit | 775800b0f1d7303d4fd8ce0e0d9eca4ff2f338f2 (patch) | |
tree | 6f92ba601a44b15e8644f33fbf229d7eff52dc42 /arch | |
parent | 008e901b70282183b52ee80d838d2994b2610231 (diff) | |
download | linux-775800b0f1d7303d4fd8ce0e0d9eca4ff2f338f2.tar.xz |
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')
-rw-r--r-- | arch/riscv/kernel/ptrace.c | 2 |
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 } |