Skip to content

Commit 8bfb676

Browse files
Zhenzhong Duanguoren83
authored andcommitted
csky: Fix a size determination in gpr_get()
"*" 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>
1 parent 87f3248 commit 8bfb676

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
@@ -84,7 +84,7 @@ static int gpr_get(struct task_struct *target,
8484
/* Abiv1 regs->tls is fake and we need sync here. */
8585
regs->tls = task_thread_info(target)->tp_value;
8686

87-
return membuf_write(&to, regs, sizeof(regs));
87+
return membuf_write(&to, regs, sizeof(*regs));
8888
}
8989

9090
static int gpr_set(struct task_struct *target,

0 commit comments

Comments
 (0)