From: Jake Moilanen <moilanen@austin.ibm.com>
To: akpm@osdl.org
Cc: linux-kernel@vger.kernel.org, Anton Blanchard <anton@samba.org>,
Paul Mackerras <paulus@samba.org>
Subject: [PATCH] ppc64: VMX memsetting incorrect size
Date: Mon, 18 Oct 2004 15:57:04 -0500 [thread overview]
Message-ID: <20041018155704.036a674d@localhost> (raw)
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]);
_
reply other threads:[~2004-10-18 20:58 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20041018155704.036a674d@localhost \
--to=moilanen@austin.ibm.com \
--cc=akpm@osdl.org \
--cc=anton@samba.org \
--cc=linux-kernel@vger.kernel.org \
--cc=paulus@samba.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.