aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/i387.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2011-10-04 14:18:30 +0200
committerJan Beulich <jbeulich@suse.com>2011-10-04 14:18:30 +0200
commit1527de3f85fa0c94578fdd12792588e0825ef2eb (patch)
treedd39a33980d9c79ffbd93afc7fe3aa71e990c1df /xen/arch/x86/i387.c
parent91f47f155288b0116472a7ce64d8709f144a5357 (diff)
downloadxen-1527de3f85fa0c94578fdd12792588e0825ef2eb.tar.gz
xen-1527de3f85fa0c94578fdd12792588e0825ef2eb.tar.bz2
xen-1527de3f85fa0c94578fdd12792588e0825ef2eb.zip
use xzalloc in x86 code
This includes the removal of a redundant memset() from microcode_amd.c. Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/arch/x86/i387.c')
-rw-r--r--xen/arch/x86/i387.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/xen/arch/x86/i387.c b/xen/arch/x86/i387.c
index e5780ef81b..3b8eedc917 100644
--- a/xen/arch/x86/i387.c
+++ b/xen/arch/x86/i387.c
@@ -245,13 +245,12 @@ int vcpu_init_fpu(struct vcpu *v)
v->arch.fpu_ctxt = &v->arch.xsave_area->fpu_sse;
else
{
- v->arch.fpu_ctxt = _xmalloc(sizeof(v->arch.xsave_area->fpu_sse), 16);
+ v->arch.fpu_ctxt = _xzalloc(sizeof(v->arch.xsave_area->fpu_sse), 16);
if ( !v->arch.fpu_ctxt )
{
rc = -ENOMEM;
goto done;
}
- memset(v->arch.fpu_ctxt, 0, sizeof(v->arch.xsave_area->fpu_sse));
}
done: