aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc/kernel')
-rw-r--r--arch/sparc/kernel/ptrace.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/arch/sparc/kernel/ptrace.c b/arch/sparc/kernel/ptrace.c
index 0619958ecfdc..29fa6e5cb450 100644
--- a/arch/sparc/kernel/ptrace.c
+++ b/arch/sparc/kernel/ptrace.c
@@ -556,8 +556,7 @@ asmlinkage void do_ptrace(struct pt_regs *regs)
556 goto out; 556 goto out;
557 } 557 }
558 558
559 if ((current->personality == PER_SUNOS && request == PTRACE_SUNATTACH) 559 if (request == PTRACE_ATTACH) {
560 || (current->personality != PER_SUNOS && request == PTRACE_ATTACH)) {
561 if (ptrace_attach(child)) { 560 if (ptrace_attach(child)) {
562 pt_error_return(regs, EPERM); 561 pt_error_return(regs, EPERM);
563 goto out_tsk; 562 goto out_tsk;
@@ -789,18 +788,6 @@ asmlinkage void do_ptrace(struct pt_regs *regs)
789 goto out_tsk; 788 goto out_tsk;
790 } 789 }
791 790
792 case PTRACE_SUNDETACH: { /* detach a process that was attached. */
793 int err = ptrace_detach(child, data);
794 if (err) {
795 pt_error_return(regs, EIO);
796 goto out_tsk;
797 }
798 pt_succ_return(regs, 0);
799 goto out_tsk;
800 }
801
802 /* PTRACE_DUMPCORE unsupported... */
803
804 default: { 791 default: {
805 int err = ptrace_request(child, request, addr, data); 792 int err = ptrace_request(child, request, addr, data);
806 if (err) 793 if (err)