diff options
author | Alexey Dobriyan | 2006-12-02 05:18:40 +0100 |
---|---|---|
committer | David S. Miller | 2006-12-10 11:40:27 +0100 |
commit | 35bca36cf7b20a73a89f87aab34b1b4dfff6bf08 (patch) | |
tree | 0b1b59d0bfcf42e38a8b4b4eafac208f3b7ed4cb /arch/sparc | |
parent | [SPARC64]: Replace kmalloc+memset with kzalloc (diff) | |
download | kernel-qcow2-linux-35bca36cf7b20a73a89f87aab34b1b4dfff6bf08.tar.gz kernel-qcow2-linux-35bca36cf7b20a73a89f87aab34b1b4dfff6bf08.tar.xz kernel-qcow2-linux-35bca36cf7b20a73a89f87aab34b1b4dfff6bf08.zip |
[SPARC{32,64}]: Propagate ptrace_traceme() return value.
ptrace_traceme() consolidation made
ret = ptrace_traceme();
dead write.
Signed-off-by: Alexey Dobriyan <adobriyan@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc')
-rw-r--r-- | arch/sparc/kernel/ptrace.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/sparc/kernel/ptrace.c b/arch/sparc/kernel/ptrace.c index 1baf13ed5c3a..003f8eed32f4 100644 --- a/arch/sparc/kernel/ptrace.c +++ b/arch/sparc/kernel/ptrace.c @@ -289,7 +289,10 @@ asmlinkage void do_ptrace(struct pt_regs *regs) if (request == PTRACE_TRACEME) { ret = ptrace_traceme(); - pt_succ_return(regs, 0); + if (ret < 0) + pt_error_return(regs, -ret); + else + pt_succ_return(regs, 0); goto out; } |