Merge branch 'regset' (PTRACE_SETREGSET data leakage)
[platform/kernel/linux-rpi.git] / arch / sparc / kernel / ptrace_64.c
index df9e731..fc5124c 100644 (file)
@@ -351,7 +351,7 @@ static int genregs64_set(struct task_struct *target,
        }
 
        if (!ret) {
-               unsigned long y;
+               unsigned long y = regs->y;
 
                ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf,
                                         &y,