aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/metag/kernel/ptrace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/metag/kernel/ptrace.c b/arch/metag/kernel/ptrace.c
index 7563628822bd..ae659ba61948 100644
--- a/arch/metag/kernel/ptrace.c
+++ b/arch/metag/kernel/ptrace.c
@@ -303,7 +303,7 @@ static int metag_tls_set(struct task_struct *target,
303 const void *kbuf, const void __user *ubuf) 303 const void *kbuf, const void __user *ubuf)
304{ 304{
305 int ret; 305 int ret;
306 void __user *tls; 306 void __user *tls = target->thread.tls_ptr;
307 307
308 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &tls, 0, -1); 308 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &tls, 0, -1);
309 if (ret) 309 if (ret)