From: Al Viro Date: Sun, 29 Jan 2006 03:17:11 +0000 (-0500) Subject: [PATCH] fallout from ptrace consolidation patch: cris/arch-v10 X-Git-Tag: v2.6.16-rc3~88 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=c350885854c231810c06aa166b46eab039e80d97;p=linux-2.6-omap-h63xx.git [PATCH] fallout from ptrace consolidation patch: cris/arch-v10 Signed-off-by: Al Viro --- diff --git a/arch/cris/arch-v10/kernel/ptrace.c b/arch/cris/arch-v10/kernel/ptrace.c index f214f74f264..961c0d58ded 100644 --- a/arch/cris/arch-v10/kernel/ptrace.c +++ b/arch/cris/arch-v10/kernel/ptrace.c @@ -202,18 +202,18 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data) int i; unsigned long tmp; + ret = 0; for (i = 0; i <= PT_MAX; i++) { tmp = get_reg(child, i); if (put_user(tmp, datap)) { ret = -EFAULT; - goto out_tsk; + break; } data += sizeof(long); } - ret = 0; break; } @@ -222,10 +222,11 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data) int i; unsigned long tmp; + ret = 0; for (i = 0; i <= PT_MAX; i++) { if (get_user(tmp, datap)) { ret = -EFAULT; - goto out_tsk; + break; } if (i == PT_DCCR) { @@ -237,7 +238,6 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data) data += sizeof(long); } - ret = 0; break; }