diff options
Diffstat (limited to 'arch/arm26/kernel/ptrace.c')
-rw-r--r-- | arch/arm26/kernel/ptrace.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/arm26/kernel/ptrace.c b/arch/arm26/kernel/ptrace.c index 416927956721..0d0ead0e0a74 100644 --- a/arch/arm26/kernel/ptrace.c +++ b/arch/arm26/kernel/ptrace.c | |||
@@ -531,7 +531,6 @@ static int ptrace_setfpregs(struct task_struct *tsk, void *ufp) | |||
531 | 531 | ||
532 | long arch_ptrace(struct task_struct *child, long request, long addr, long data) | 532 | long arch_ptrace(struct task_struct *child, long request, long addr, long data) |
533 | { | 533 | { |
534 | unsigned long tmp; | ||
535 | int ret; | 534 | int ret; |
536 | 535 | ||
537 | switch (request) { | 536 | switch (request) { |
@@ -540,12 +539,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data) | |||
540 | */ | 539 | */ |
541 | case PTRACE_PEEKTEXT: | 540 | case PTRACE_PEEKTEXT: |
542 | case PTRACE_PEEKDATA: | 541 | case PTRACE_PEEKDATA: |
543 | ret = access_process_vm(child, addr, &tmp, | 542 | ret = generic_ptrace_peekdata(child, addr, data); |
544 | sizeof(unsigned long), 0); | ||
545 | if (ret == sizeof(unsigned long)) | ||
546 | ret = put_user(tmp, (unsigned long *) data); | ||
547 | else | ||
548 | ret = -EIO; | ||
549 | break; | 543 | break; |
550 | 544 | ||
551 | case PTRACE_PEEKUSR: | 545 | case PTRACE_PEEKUSR: |