* [PATCH] ppc64: VMX memsetting incorrect size
@ 2004-10-18 20:57 Jake Moilanen
0 siblings, 0 replies; only message in thread
From: Jake Moilanen @ 2004-10-18 20:57 UTC (permalink / raw)
To: akpm; +Cc: linux-kernel, Anton Blanchard, Paul Mackerras
Fixup of an incorrect memset() size for vmx in restore_sigcontext.
Signed-off-by: Jake Moilanen <moilanen@austin.ibm.com>
---
diff -puN arch/ppc64/kernel/signal.c~vmx_memset_size arch/ppc64/kernel/signal.c
--- linux-2.6-bk/arch/ppc64/kernel/signal.c~vmx_memset_size Mon Oct 18 15:39:34 2004
+++ linux-2.6-bk-moilanen/arch/ppc64/kernel/signal.c Mon Oct 18 15:39:47 2004
@@ -210,7 +210,7 @@ static long restore_sigcontext(struct pt
if (v_regs != 0 && (regs->msr & MSR_VEC) != 0)
err |= __copy_from_user(current->thread.vr, v_regs, 33 * sizeof(vector128));
else if (current->thread.used_vr)
- memset(¤t->thread.vr, 0, 33);
+ memset(¤t->thread.vr, 0, 33 * sizeof(vector128));
/* Always get VRSAVE back */
if (v_regs != 0)
err |= __get_user(current->thread.vrsave, (u32 __user *)&v_regs[33]);
_
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-10-18 20:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-18 20:57 [PATCH] ppc64: VMX memsetting incorrect size Jake Moilanen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox