summaryrefslogtreecommitdiffstats
path: root/kernel/arch/tile/kernel/ptrace.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/arch/tile/kernel/ptrace.c')
-rw-r--r--kernel/arch/tile/kernel/ptrace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/arch/tile/kernel/ptrace.c b/kernel/arch/tile/kernel/ptrace.c
index bdc126faf..6239aa155 100644
--- a/kernel/arch/tile/kernel/ptrace.c
+++ b/kernel/arch/tile/kernel/ptrace.c
@@ -111,7 +111,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));