diff options
author | Zhenzhong Duan <zhenzhong.duan@gmail.com> | 2020-09-22 12:15:05 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-03-04 13:38:21 +0300 |
commit | 02309dd337374e110909de81cfe463c7b82c2e2d (patch) | |
tree | 31d4a3446f0f66520728b7bb73bb53cd70bfb2a6 /arch/csky | |
parent | b7925acd82926ebbf94a0f0783a3961f4e558856 (diff) | |
download | linux-02309dd337374e110909de81cfe463c7b82c2e2d.tar.xz |
csky: Fix a size determination in gpr_get()
[ Upstream commit 8bfb676492da208bd6dde0f22dff79840dbb5051 ]
"*" 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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch/csky')
-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 d822144906ac..a4cf2e2ac15a 100644 --- a/arch/csky/kernel/ptrace.c +++ b/arch/csky/kernel/ptrace.c @@ -83,7 +83,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, |