mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-11-19 08:05:27 +08:00
[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>
This commit is contained in:
parent
982c2064d9
commit
35bca36cf7
@ -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;
|
||||
}
|
||||
|
||||
|
@ -202,7 +202,10 @@ asmlinkage void do_ptrace(struct pt_regs *regs)
|
||||
#endif
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user