rk: revert 20f3d0b+v3.0.66 to v3.0
[firefly-linux-kernel-4.4.55.git] / arch / xtensa / kernel / ptrace.c
index a0d042aa296755e441fe4266a7103b315a581a34..c72c9473ef9913f9666ff54f869fe35fdfd27509 100644 (file)
@@ -147,9 +147,6 @@ int ptrace_setxregs(struct task_struct *child, void __user *uregs)
        elf_xtregs_t *xtregs = uregs;
        int ret = 0;
 
-       if (!access_ok(VERIFY_READ, uregs, sizeof(elf_xtregs_t)))
-               return -EFAULT;
-
 #if XTENSA_HAVE_COPROCESSORS
        /* Flush all coprocessors before we overwrite them. */
        coprocessor_flush_all(ti);