Merge tag 'v3.10.107' into update
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / arch / tile / kernel / ptrace.c
index 0f83ed4602b2fb878bd8b110632b8b92bf49259c..d0dac73a2d80ec9125121da812afc027ea89aa89 100644 (file)
@@ -110,7 +110,7 @@ static int tile_gpr_set(struct task_struct *target,
                          const void *kbuf, const void __user *ubuf)
 {
        int ret;
-       struct pt_regs regs;
+       struct pt_regs regs = *task_pt_regs(target);
 
        ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &regs, 0,
                                 sizeof(regs));