projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7be7cbf
)
[PATCH] fallout from ptrace consolidation patch: cris/arch-v10
author
Al Viro
<viro@zeniv.linux.org.uk>
Sun, 29 Jan 2006 03:17:11 +0000
(22:17 -0500)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Wed, 8 Feb 2006 01:57:19 +0000
(20:57 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/cris/arch-v10/kernel/ptrace.c
patch
|
blob
|
history
diff --git
a/arch/cris/arch-v10/kernel/ptrace.c
b/arch/cris/arch-v10/kernel/ptrace.c
index f214f74f264e43a65415d490a640ae31364a94de..961c0d58ded4a52ca5313e0ef94e62f8d0adf126 100644
(file)
--- 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_ts
k;
+
brea
k;
}
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_ts
k;
+
brea
k;
}
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;
}