]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - arch/metag/kernel/ptrace.c
metag/ptrace: Preserve previous registers for short regset write
[mirror_ubuntu-artful-kernel.git] / arch / metag / kernel / ptrace.c
index 7563628822bdf638a708816bf4abe8ccb1b2a4db..ae659ba619487d67be09a8cd792f957be1709fae 100644 (file)
@@ -303,7 +303,7 @@ static int metag_tls_set(struct task_struct *target,
                        const void *kbuf, const void __user *ubuf)
 {
        int ret;
-       void __user *tls;
+       void __user *tls = target->thread.tls_ptr;
 
        ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &tls, 0, -1);
        if (ret)