PTRACE_POKEDATA consolidation
[deliverable/linux.git] / arch / s390 / kernel / ptrace.c
index 28afff4e5d1b3594f33b2f0141a5d4d7fe53e4f7..f4503ca27630165b4166d93f275a90a525dac0e6 100644 (file)
@@ -314,10 +314,7 @@ do_ptrace_normal(struct task_struct *child, long request, long addr, long data)
                /* Remove high order bit from address (only for 31 bit). */
                addr &= PSW_ADDR_INSN;
                /* write the word at location addr. */
-               copied = access_process_vm(child, addr, &data, sizeof(data),1);
-               if (copied != sizeof(data))
-                       return -EIO;
-               return 0;
+               return generic_ptrace_pokedata(child, addr, data);
 
        case PTRACE_POKEUSR:
                /* write the word at location addr in the USER area */
This page took 0.039892 seconds and 5 git commands to generate.