Skip to content

Commit 775800b

Browse files
davidltpalmer-dabbelt
authored andcommitted
riscv: fix trace_sys_exit hook
Fix compilation error. Signed-off-by: David Abdurachmanov <[email protected]> Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 008e901 commit 775800b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/riscv/kernel/ptrace.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,6 @@ void do_syscall_trace_exit(struct pt_regs *regs)
179179

180180
#ifdef CONFIG_HAVE_SYSCALL_TRACEPOINTS
181181
if (test_thread_flag(TIF_SYSCALL_TRACEPOINT))
182-
trace_sys_exit(regs, regs->regs[0]);
182+
trace_sys_exit(regs, regs_return_value(regs));
183183
#endif
184184
}

0 commit comments

Comments
 (0)