xcp-1.6-updates/xen-4.1.hg

changeset 23284:f5f1e6ef9782

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>
xen-unstable changeset: 25168:d5f9005dfc4a
xen-unstable date: Wed Apr 11 13:10:33 2012 +0100
author Tim Deegan <tim@xen.org>
date Tue Apr 24 10:50:25 2012 +0100 (2012-04-24)
parents 494aa5ecd2e1
children 99517f769cc8
files xen/arch/x86/cpu/mcheck/amd_f10.c
line diff
     1.1 --- a/xen/arch/x86/cpu/mcheck/amd_f10.c	Tue Apr 17 08:35:09 2012 +0100
     1.2 +++ b/xen/arch/x86/cpu/mcheck/amd_f10.c	Tue Apr 24 10:50:25 2012 +0100
     1.3 @@ -73,9 +73,9 @@ amd_f10_handler(struct mc_info *mi, uint
     1.4  		return NULL;
     1.5  	}
     1.6  
     1.7 -	memset(mc_ext, 0, sizeof(mc_ext));
     1.8 +	memset(mc_ext, 0, sizeof(*mc_ext));
     1.9  	mc_ext->common.type = MC_TYPE_EXTENDED;
    1.10 -	mc_ext->common.size = sizeof(mc_ext);
    1.11 +	mc_ext->common.size = sizeof(*mc_ext);
    1.12  	mc_ext->mc_msrs = 3;
    1.13  
    1.14  	mc_ext->mc_msr[0].reg = MSR_F10_MC4_MISC1;