aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/ptrace.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/kernel/ptrace.c')
-rw-r--r--arch/powerpc/kernel/ptrace.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/powerpc/kernel/ptrace.c b/arch/powerpc/kernel/ptrace.c
index 581d427148e7..8a177bd9eab4 100644
--- a/arch/powerpc/kernel/ptrace.c
+++ b/arch/powerpc/kernel/ptrace.c
@@ -413,11 +413,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
413 /* If I and D space are separate, this will have to be fixed. */ 413 /* If I and D space are separate, this will have to be fixed. */
414 case PTRACE_POKETEXT: /* write the word at location addr. */ 414 case PTRACE_POKETEXT: /* write the word at location addr. */
415 case PTRACE_POKEDATA: 415 case PTRACE_POKEDATA:
416 ret = 0; 416 ret = generic_ptrace_pokedata(child, addr, data);
417 if (access_process_vm(child, addr, &data, sizeof(data), 1)
418 == sizeof(data))
419 break;
420 ret = -EIO;
421 break; 417 break;
422 418
423 /* write the word at location addr in the USER area */ 419 /* write the word at location addr in the USER area */