Skip to content

Commit

Permalink
[PATCH] fallout from ptrace consolidation patch: cris/arch-v10
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
Al Viro committed Feb 8, 2006
1 parent 7be7cbf commit c350885
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions arch/cris/arch-v10/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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) {
Expand All @@ -237,7 +238,6 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
data += sizeof(long);
}

ret = 0;
break;
}

Expand Down

0 comments on commit c350885

Please sign in to comment.