* Re: [PATCH]sparc64: Fix wrong syscall return value passed to trace_sys_exit()
@ 2013-08-01 2:11 David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2013-08-01 2:11 UTC (permalink / raw)
To: sparclinux
From: Kirill Tkhai <tkhai@yandex.ru>
Date: Fri, 26 Jul 2013 01:00:53 +0400
> Syscall number is passed instead of return value. Fix that.
>
> Signed-off-by: Kirill Tkhai <tkhai@yandex.ru>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH]sparc64: Fix wrong syscall return value passed to trace_sys_exit()
@ 2013-07-25 21:00 Kirill Tkhai
0 siblings, 0 replies; 2+ messages in thread
From: Kirill Tkhai @ 2013-07-25 21:00 UTC (permalink / raw)
To: sparclinux
Syscall number is passed instead of return value. Fix that.
Signed-off-by: Kirill Tkhai <tkhai@yandex.ru>
CC: David Miller <davem@davemloft.net>
---
arch/sparc/kernel/ptrace_64.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/sparc/kernel/ptrace_64.c b/arch/sparc/kernel/ptrace_64.c
index 7ff45e4..a348330 100644
--- a/arch/sparc/kernel/ptrace_64.c
+++ b/arch/sparc/kernel/ptrace_64.c
@@ -1087,7 +1087,7 @@ asmlinkage void syscall_trace_leave(struct pt_regs *regs)
audit_syscall_exit(regs);
if (unlikely(test_thread_flag(TIF_SYSCALL_TRACEPOINT)))
- trace_sys_exit(regs, regs->u_regs[UREG_G1]);
+ trace_sys_exit(regs, regs->u_regs[UREG_I0]);
if (test_thread_flag(TIF_SYSCALL_TRACE))
tracehook_report_syscall_exit(regs, 0);
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-08-01 2:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-01 2:11 [PATCH]sparc64: Fix wrong syscall return value passed to trace_sys_exit() David Miller
-- strict thread matches above, loose matches on Subject: below --
2013-07-25 21:00 Kirill Tkhai
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.