]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
powerpc: Fix ptrace buffer size for VSX
authorMichael Neuling <mikey@neuling.org>
Mon, 28 Jul 2008 15:13:14 +0000 (01:13 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 30 Jul 2008 05:26:54 +0000 (15:26 +1000)
Fix cut-and-paste error in the size setting for ptrace buffers for VSX.

Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/ptrace.c

index 6b66cd85b433ce8c296848f42e77ae5e18bcca87..97d5dede8173d8f0332e782c43bda3b8b1d929f8 100644 (file)
@@ -975,15 +975,13 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
        case PTRACE_GETVSRREGS:
                return copy_regset_to_user(child, &user_ppc_native_view,
                                           REGSET_VSX,
-                                          0, (32 * sizeof(vector128) +
-                                              sizeof(u32)),
+                                          0, 32 * sizeof(double),
                                           (void __user *) data);
 
        case PTRACE_SETVSRREGS:
                return copy_regset_from_user(child, &user_ppc_native_view,
                                             REGSET_VSX,
-                                            0, (32 * sizeof(vector128) +
-                                                sizeof(u32)),
+                                            0, 32 * sizeof(double),
                                             (const void __user *) data);
 #endif
 #ifdef CONFIG_SPE