PTRACE_POKEDATA consolidation
[deliverable/linux.git] / arch / xtensa / kernel / ptrace.c
index af182d3a700086def4a8e2180c19c92d1a05f969..06a13d9b69db54945e4d8a979e4468c88b9861ca 100644 (file)
@@ -128,10 +128,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
 
        case PTRACE_POKETEXT: /* write the word at location addr. */
        case PTRACE_POKEDATA:
-               if (access_process_vm(child, addr, &data, sizeof(data), 1)
-                   == sizeof(data))
-                       break;
-               ret = -EIO;
+               ret = generic_ptrace_pokedata(child, addr, data);
                goto out;
 
        case PTRACE_POKEUSR:
This page took 0.025675 seconds and 5 git commands to generate.