Skip to content

Commit 02309dd

Browse files
Zhenzhong Duangregkh
authored andcommitted
csky: Fix a size determination in gpr_get()
[ Upstream commit 8bfb676 ] "*" is missed in size determination as we are passing register set rather than a pointer. Fixes: dcad785 ("sky: switch to ->regset_get()") Signed-off-by: Zhenzhong Duan <zhenzhong.duan@gmail.com> Signed-off-by: Guo Ren <guoren@linux.alibaba.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent b7925ac commit 02309dd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/csky/kernel/ptrace.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ static int gpr_get(struct task_struct *target,
8383
/* Abiv1 regs->tls is fake and we need sync here. */
8484
regs->tls = task_thread_info(target)->tp_value;
8585

86-
return membuf_write(&to, regs, sizeof(regs));
86+
return membuf_write(&to, regs, sizeof(*regs));
8787
}
8888

8989
static int gpr_set(struct task_struct *target,

0 commit comments

Comments
 (0)