28 lines
857 B
Diff
28 lines
857 B
Diff
|
# HG changeset patch
|
||
|
# User Tim Deegan <tim@xen.org>
|
||
|
# Date 1334146233 -3600
|
||
|
# Node ID d5f9005dfc4ac2edb444e342a427dbe0f2cdf2f5
|
||
|
# Parent 2badbf64a582ed62f39ca465c189f759c67350c8
|
||
|
x86: fix memset(ptr, 0, sizeof ptr).
|
||
|
|
||
|
Signed-off-by: Tim Deegan <tim@xen.org>
|
||
|
Acked-by: Jan Beulich <jbeulich@suse.com>
|
||
|
Acked-by: Christoph Egger <Christoph.Egger@amd.com>
|
||
|
Acked-by: Keir Fraser <keir@xen.org>
|
||
|
Committed-by: Tim Deegan <tim@xen.org>
|
||
|
|
||
|
--- a/xen/arch/x86/cpu/mcheck/amd_f10.c
|
||
|
+++ b/xen/arch/x86/cpu/mcheck/amd_f10.c
|
||
|
@@ -73,9 +73,9 @@ amd_f10_handler(struct mc_info *mi, uint
|
||
|
return NULL;
|
||
|
}
|
||
|
|
||
|
- memset(mc_ext, 0, sizeof(mc_ext));
|
||
|
+ memset(mc_ext, 0, sizeof(*mc_ext));
|
||
|
mc_ext->common.type = MC_TYPE_EXTENDED;
|
||
|
- mc_ext->common.size = sizeof(mc_ext);
|
||
|
+ mc_ext->common.size = sizeof(*mc_ext);
|
||
|
mc_ext->mc_msrs = 3;
|
||
|
|
||
|
mc_ext->mc_msr[0].reg = MSR_F10_MC4_MISC1;
|