mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-18 02:46:06 +00:00
csky: Fix a size determination in gpr_get()
"*" is missed in size determination as we are passing register set rather than a pointer. Fixes: dcad7854fcce ("sky: switch to ->regset_get()") Signed-off-by: Zhenzhong Duan <zhenzhong.duan@gmail.com> Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
This commit is contained in:
parent
87f3248cdb
commit
8bfb676492
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user