summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorMichael Neuling <mikey@neuling.org>2008-07-29 01:13:14 +1000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2008-07-30 15:26:54 +1000
commit1ac42ef844d7c0996f15c6f94f463ac94cb80818 (patch)
treea350db1d68190e87e999657de8d49767347c0459 /arch
parent33b3f03dccc26c377e9689790ecc41079a0c9ca7 (diff)
downloadlinux-stable-1ac42ef844d7c0996f15c6f94f463ac94cb80818.tar.gz
linux-stable-1ac42ef844d7c0996f15c6f94f463ac94cb80818.tar.bz2
linux-stable-1ac42ef844d7c0996f15c6f94f463ac94cb80818.zip
powerpc: Fix ptrace buffer size for VSX
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/kernel/ptrace.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/powerpc/kernel/ptrace.c b/arch/powerpc/kernel/ptrace.c
index 6b66cd85b433..97d5dede8173 100644
--- a/arch/powerpc/kernel/ptrace.c
+++ b/arch/powerpc/kernel/ptrace.c
@@ -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