diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2006-01-28 22:17:11 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2006-02-07 20:57:19 -0500 |
commit | c350885854c231810c06aa166b46eab039e80d97 (patch) | |
tree | dcb076d26ed8925b01a7491ef3fcc18c68e4345d /arch/cris/arch-v10/kernel | |
parent | 7be7cbf684b372abaa8d6723eabedfa6ad79ee43 (diff) |
[PATCH] fallout from ptrace consolidation patch: cris/arch-v10
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/cris/arch-v10/kernel')
-rw-r--r-- | arch/cris/arch-v10/kernel/ptrace.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/cris/arch-v10/kernel/ptrace.c b/arch/cris/arch-v10/kernel/ptrace.c index f214f74f264e..961c0d58ded4 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) | |||
202 | int i; | 202 | int i; |
203 | unsigned long tmp; | 203 | unsigned long tmp; |
204 | 204 | ||
205 | ret = 0; | ||
205 | for (i = 0; i <= PT_MAX; i++) { | 206 | for (i = 0; i <= PT_MAX; i++) { |
206 | tmp = get_reg(child, i); | 207 | tmp = get_reg(child, i); |
207 | 208 | ||
208 | if (put_user(tmp, datap)) { | 209 | if (put_user(tmp, datap)) { |
209 | ret = -EFAULT; | 210 | ret = -EFAULT; |
210 | goto out_tsk; | 211 | break; |
211 | } | 212 | } |
212 | 213 | ||
213 | data += sizeof(long); | 214 | data += sizeof(long); |
214 | } | 215 | } |
215 | 216 | ||
216 | ret = 0; | ||
217 | break; | 217 | break; |
218 | } | 218 | } |
219 | 219 | ||
@@ -222,10 +222,11 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data) | |||
222 | int i; | 222 | int i; |
223 | unsigned long tmp; | 223 | unsigned long tmp; |
224 | 224 | ||
225 | ret = 0; | ||
225 | for (i = 0; i <= PT_MAX; i++) { | 226 | for (i = 0; i <= PT_MAX; i++) { |
226 | if (get_user(tmp, datap)) { | 227 | if (get_user(tmp, datap)) { |
227 | ret = -EFAULT; | 228 | ret = -EFAULT; |
228 | goto out_tsk; | 229 | break; |
229 | } | 230 | } |
230 | 231 | ||
231 | if (i == PT_DCCR) { | 232 | if (i == PT_DCCR) { |
@@ -237,7 +238,6 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data) | |||
237 | data += sizeof(long); | 238 | data += sizeof(long); |
238 | } | 239 | } |
239 | 240 | ||
240 | ret = 0; | ||
241 | break; | 241 | break; |
242 | } | 242 | } |
243 | 243 | ||