Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Zhenzhong Duan and committed by
Guo Ren
8bfb6764 87f3248c

+1 -1
+1 -1
arch/csky/kernel/ptrace.c
··· 84 84 /* Abiv1 regs->tls is fake and we need sync here. */ 85 85 regs->tls = task_thread_info(target)->tp_value; 86 86 87 - return membuf_write(&to, regs, sizeof(regs)); 87 + return membuf_write(&to, regs, sizeof(*regs)); 88 88 } 89 89 90 90 static int gpr_set(struct task_struct *target,