[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] domain builder: Zero start_info struct.
# HG changeset patch # User kfraser@xxxxxxxxxxxxxxxxxxxxx # Date 1186140183 -3600 # Node ID 0120cca784356fce28d69565f054f8f875ada2c8 # Parent cb3e6fcb7f34dd4cb46e46a3e5068c9333a06cda domain builder: Zero start_info struct. Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx> --- tools/libxc/xc_dom_x86.c | 2 ++ 1 files changed, 2 insertions(+) diff -r cb3e6fcb7f34 -r 0120cca78435 tools/libxc/xc_dom_x86.c --- a/tools/libxc/xc_dom_x86.c Fri Aug 03 12:22:33 2007 +0100 +++ b/tools/libxc/xc_dom_x86.c Fri Aug 03 12:23:03 2007 +0100 @@ -417,6 +417,7 @@ static int start_info_x86_32(struct xc_d xc_dom_printf("%s: called\n", __FUNCTION__); + memset(start_info, 0, sizeof(*start_info)); sprintf(start_info->magic, dom->guest_type); start_info->nr_pages = dom->total_pages; start_info->shared_info = shinfo << PAGE_SHIFT_X86; @@ -455,6 +456,7 @@ static int start_info_x86_64(struct xc_d xc_dom_printf("%s: called\n", __FUNCTION__); + memset(start_info, 0, sizeof(*start_info)); sprintf(start_info->magic, dom->guest_type); start_info->nr_pages = dom->total_pages; start_info->shared_info = shinfo << PAGE_SHIFT_X86; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |