Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Xen: Changelog
[xen-4.1-testing] x86: fix memset(ptr, 0, sizeof ptr).
 

Index | Next | Previous | View Flat


patchbot at xen

May 14, 2012, 9:28 AM


Views: 63
Permalink
[xen-4.1-testing] x86: fix memset(ptr, 0, sizeof ptr).

# HG changeset patch
# User Tim Deegan <tim [at] xen>
# Date 1335261025 -3600
# Node ID f5f1e6ef978299300a64e7db72f43024186f6721
# Parent 494aa5ecd2e19384b5ad6c2d30867b86b7f2b405
x86: fix memset(ptr, 0, sizeof ptr).

Signed-off-by: Tim Deegan <tim [at] xen>
Acked-by: Jan Beulich <jbeulich [at] suse>
Acked-by: Christoph Egger <Christoph.Egger [at] amd>
Acked-by: Keir Fraser <keir [at] xen>
Committed-by: Tim Deegan <tim [at] xen>
xen-unstable changeset: 25168:d5f9005dfc4a
xen-unstable date: Wed Apr 11 13:10:33 2012 +0100
---


diff -r 494aa5ecd2e1 -r f5f1e6ef9782 xen/arch/x86/cpu/mcheck/amd_f10.c
--- a/xen/arch/x86/cpu/mcheck/amd_f10.c Tue Apr 17 08:35:09 2012 +0100
+++ b/xen/arch/x86/cpu/mcheck/amd_f10.c Tue Apr 24 10:50:25 2012 +0100
@@ -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;

_______________________________________________
Xen-changelog mailing list
Xen-changelog [at] lists
http://lists.xensource.com/xen-changelog

Subject User Time
[xen-4.1-testing] x86: fix memset(ptr, 0, sizeof ptr). patchbot at xen May 14, 2012, 9:28 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.