From: Chris Torek Date: Wed, 3 Dec 2008 08:47:28 +0000 (-0800) Subject: sparc64: Fix bug in PTRACE_SETFPREGS64 handling. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ee4ee527278a66321301d4f1f5ae22e49ab18fad;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git sparc64: Fix bug in PTRACE_SETFPREGS64 handling. From: Chris Torek >The SPARC64 kernel code for PTRACE_SETFPREGS64 appears to be an exact copy >of that for PTRACE_GETFPREGS64. This means that gdbserver and native >64-bit GDB cannot set floating-point registers. It looks like a simple typo. Signed-off-by: David S. Miller --- diff --git a/arch/sparc64/kernel/ptrace.c b/arch/sparc64/kernel/ptrace.c index f43adbc773ca..a941c610e7ce 100644 --- a/arch/sparc64/kernel/ptrace.c +++ b/arch/sparc64/kernel/ptrace.c @@ -1014,7 +1014,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data) break; case PTRACE_SETFPREGS64: - ret = copy_regset_to_user(child, view, REGSET_FP, + ret = copy_regset_from_user(child, view, REGSET_FP, 0 * sizeof(u64), 33 * sizeof(u64), fps);