aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel/ptrace.c
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@openvz.org>2006-12-01 23:18:40 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2006-12-10 05:40:27 -0500
commit35bca36cf7b20a73a89f87aab34b1b4dfff6bf08 (patch)
tree0b1b59d0bfcf42e38a8b4b4eafac208f3b7ed4cb /arch/sparc/kernel/ptrace.c
parent982c2064d9a8b51404088d132489a25e2db807fd (diff)
[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/kernel/ptrace.c')
-rw-r--r--arch/sparc/kernel/ptrace.c5
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)
289 289
290 if (request == PTRACE_TRACEME) { 290 if (request == PTRACE_TRACEME) {
291 ret = ptrace_traceme(); 291 ret = ptrace_traceme();
292 pt_succ_return(regs, 0); 292 if (ret < 0)
293 pt_error_return(regs, -ret);
294 else
295 pt_succ_return(regs, 0);
293 goto out; 296 goto out;
294 } 297 }
295 298