Index: arch/mips/kernel/ptrace.c =================================================================== RCS file: /home/cvs/linux/arch/mips/kernel/ptrace.c,v retrieving revision 1.46 diff -u -r1.46 ptrace.c --- arch/mips/kernel/ptrace.c 2 Dec 2002 00:27:46 -0000 1.46 +++ arch/mips/kernel/ptrace.c 14 Mar 2003 00:37:13 -0000 @@ -73,7 +73,7 @@ ret = -EPERM; if (pid == 1) /* you may not mess with init */ - goto out; + goto out_tsk; if (request == PTRACE_ATTACH) { ret = ptrace_attach(child); @@ -95,8 +95,7 @@ if (copied != sizeof(tmp)) break; ret = put_user(tmp,(unsigned long *) data); - - goto out; + break; } /* Read the word at location addr in the USER area. */ @@ -165,10 +164,10 @@ default: tmp = 0; ret = -EIO; - goto out; + goto out_tsk; } ret = put_user(tmp, (unsigned long *) data); - goto out; + break; } case PTRACE_POKETEXT: /* write the word at location addr. */ @@ -178,7 +177,7 @@ == sizeof(data)) break; ret = -EIO; - goto out; + break; case PTRACE_POKEUSR: { struct pt_regs *regs; Index: arch/mips64/kernel/ptrace.c =================================================================== RCS file: /home/cvs/linux/arch/mips64/kernel/ptrace.c,v retrieving revision 1.27 diff -u -r1.27 ptrace.c --- arch/mips64/kernel/ptrace.c 27 Jan 2003 18:15:02 -0000 1.27 +++ arch/mips64/kernel/ptrace.c 14 Mar 2003 00:37:14 -0000 @@ -206,7 +206,7 @@ ret = -EIO; break; } - goto out; + break; } case PTRACE_SYSCALL: /* continue and stop at next (return from) syscall */ case PTRACE_CONT: { /* restart after signal. */ @@ -286,7 +286,7 @@ ret = -EPERM; if (pid == 1) /* you may not mess with init */ - goto out; + goto out_tsk; if (request == PTRACE_ATTACH) { ret = ptrace_attach(child); @@ -420,7 +420,7 @@ ret = -EIO; break; } - goto out; + break; } case PTRACE_SYSCALL: /* continue and stop at next (return from) syscall */ case PTRACE_CONT: { /* restart after signal. */