Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 20035
b: refs/heads/master
c: c350885
h: refs/heads/master
i:
  20033: cc98c90
  20031: d3caf04
v: v3
  • Loading branch information
Al Viro committed Feb 8, 2006
1 parent 47e40b5 commit 31932f0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7be7cbf684b372abaa8d6723eabedfa6ad79ee43
refs/heads/master: c350885854c231810c06aa166b46eab039e80d97
8 changes: 4 additions & 4 deletions trunk/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 31932f0

Please sign in to comment.