Commit 8bfb6764 authored by Zhenzhong Duan's avatar Zhenzhong Duan Committed by Guo Ren

csky: Fix a size determination in gpr_get()

"*" is missed  in size determination as we are passing register set
rather than a pointer.

Fixes: dcad7854 ("sky: switch to ->regset_get()")
Signed-off-by: default avatarZhenzhong Duan <zhenzhong.duan@gmail.com>
Signed-off-by: default avatarGuo Ren <guoren@linux.alibaba.com>
parent 87f3248c
......@@ -84,7 +84,7 @@ static int gpr_get(struct task_struct *target,
/* Abiv1 regs->tls is fake and we need sync here. */
regs->tls = task_thread_info(target)->tp_value;
return membuf_write(&to, regs, sizeof(regs));
return membuf_write(&to, regs, sizeof(*regs));
}
static int gpr_set(struct task_struct *target,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment