OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a84ae80
)
sparc64: Fix wrong syscall return value passed to trace_sys_exit()
author
Kirill Tkhai
<tkhai@yandex.ru>
Thu, 25 Jul 2013 21:00:53 +0000
(
01:00
+0400)
committer
David S. Miller
<davem@davemloft.net>
Thu, 1 Aug 2013 02:10:04 +0000
(19:10 -0700)
Syscall number is passed instead of return value. Fix that.
Signed-off-by: Kirill Tkhai <tkhai@yandex.ru>
CC: David Miller <davem@davemloft.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/ptrace_64.c
patch
|
blob
|
history
diff --git
a/arch/sparc/kernel/ptrace_64.c
b/arch/sparc/kernel/ptrace_64.c
index
7ff45e4
..
a348330
100644
(file)
--- 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);