diff options
author | Zhenzhong Duan <zhenzhong.duan@gmail.com> | 2020-09-22 12:15:05 +0300 |
---|---|---|
committer | Guo Ren <guoren@linux.alibaba.com> | 2021-01-12 04:52:41 +0300 |
commit | 8bfb676492da208bd6dde0f22dff79840dbb5051 (patch) | |
tree | 5be86a2d23598a9107e8254e8f156fadbe4d0367 /arch/csky/kernel | |
parent | 87f3248cdb9aeac35129cb4337ce541a945cb35c (diff) | |
download | linux-8bfb676492da208bd6dde0f22dff79840dbb5051.tar.xz |
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>
Diffstat (limited to 'arch/csky/kernel')
-rw-r--r-- | arch/csky/kernel/ptrace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/csky/kernel/ptrace.c b/arch/csky/kernel/ptrace.c index 417b759fab6c..0105ac81b432 100644 --- a/arch/csky/kernel/ptrace.c +++ b/arch/csky/kernel/ptrace.c @@ -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, |