aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc64/kernel/ptrace.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc64/kernel/ptrace.c')
-rw-r--r--arch/sparc64/kernel/ptrace.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/arch/sparc64/kernel/ptrace.c b/arch/sparc64/kernel/ptrace.c
index 2232e85c8415..e881dbbd2c49 100644
--- a/arch/sparc64/kernel/ptrace.c
+++ b/arch/sparc64/kernel/ptrace.c
@@ -766,8 +766,7 @@ asmlinkage void do_ptrace(struct pt_regs *regs)
766 goto out; 766 goto out;
767 } 767 }
768 768
769 if ((current->personality == PER_SUNOS && request == PTRACE_SUNATTACH) 769 if (request == PTRACE_ATTACH) {
770 || (current->personality != PER_SUNOS && request == PTRACE_ATTACH)) {
771 if (ptrace_attach(child)) { 770 if (ptrace_attach(child)) {
772 pt_error_return(regs, EPERM); 771 pt_error_return(regs, EPERM);
773 goto out_tsk; 772 goto out_tsk;
@@ -1137,18 +1136,6 @@ asmlinkage void do_ptrace(struct pt_regs *regs)
1137 goto out_tsk; 1136 goto out_tsk;
1138 } 1137 }
1139 1138
1140 case PTRACE_SUNDETACH: { /* detach a process that was attached. */
1141 int error = ptrace_detach(child, data);
1142 if (error) {
1143 pt_error_return(regs, EIO);
1144 goto out_tsk;
1145 }
1146 pt_succ_return(regs, 0);
1147 goto out_tsk;
1148 }
1149
1150 /* PTRACE_DUMPCORE unsupported... */
1151
1152 case PTRACE_GETEVENTMSG: { 1139 case PTRACE_GETEVENTMSG: {
1153 int err; 1140 int err;
1154 1141