0e9e131edf
25242-x86_64-hotplug-compat-m2p.patch 25247-SVM-no-rdtsc-intercept.patch 25267-x86-text-unlikely.patch 25269-x86-vMCE-addr-misc-write.patch 25271-x86_64-IST-index.patch 25327-pvdrv-no-asm-system-h.patch - Upstream patches from Jan 25168-x86-memset-size.patch 25191-x86-tdt-delta-calculation.patch 25195-x86-cpuidle-C2-no-flush-or-bm-check.patch 25196-x86-HAP-PAT-sr.patch 25200-x86_64-trap-bounce-flags.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=189
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;
|