Skip to content

Commit

Permalink
riscv: fix trace_sys_exit hook
Browse files Browse the repository at this point in the history
Fix compilation error.

Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
  • Loading branch information
davidlt authored and palmer-dabbelt committed Jan 7, 2019
1 parent 008e901 commit 775800b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/riscv/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 775800b

Please sign in to comment.