Commit 35bca36c authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by David S. Miller

[SPARC{32,64}]: Propagate ptrace_traceme() return value.

ptrace_traceme() consolidation made

	ret = ptrace_traceme();

dead write.
Signed-off-by: default avatarAlexey Dobriyan <adobriyan@openvz.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 982c2064
...@@ -289,7 +289,10 @@ asmlinkage void do_ptrace(struct pt_regs *regs) ...@@ -289,7 +289,10 @@ asmlinkage void do_ptrace(struct pt_regs *regs)
if (request == PTRACE_TRACEME) { if (request == PTRACE_TRACEME) {
ret = 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; goto out;
} }
......
...@@ -202,7 +202,10 @@ asmlinkage void do_ptrace(struct pt_regs *regs) ...@@ -202,7 +202,10 @@ asmlinkage void do_ptrace(struct pt_regs *regs)
#endif #endif
if (request == PTRACE_TRACEME) { if (request == PTRACE_TRACEME) {
ret = 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; goto out;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment