diff options
author | David Abdurachmanov <david.abdurachmanov@gmail.com> | 2018-12-06 16:26:34 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-02-20 10:25:40 +0100 |
commit | fa92c4e6b244ae5814ac1ad87d00cf40b6d7199f (patch) | |
tree | a89a4c4c839670bd5be762b58724b0b15850b458 /arch/riscv | |
parent | da78c8cda5b90df90830a67b5214e8e5ecfcfe11 (diff) | |
download | linux-stable-fa92c4e6b244ae5814ac1ad87d00cf40b6d7199f.tar.gz linux-stable-fa92c4e6b244ae5814ac1ad87d00cf40b6d7199f.tar.bz2 linux-stable-fa92c4e6b244ae5814ac1ad87d00cf40b6d7199f.zip |
riscv: fix trace_sys_exit hook
[ Upstream commit 775800b0f1d7303d4fd8ce0e0d9eca4ff2f338f2 ]
Fix compilation error.
Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch/riscv')
-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 9f82a7e34c64..9db7d0076375 100644 --- a/arch/riscv/kernel/ptrace.c +++ b/arch/riscv/kernel/ptrace.c @@ -120,6 +120,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 } |