# HG changeset patch
# User yjiang5@xxxxxxxxxxxxxxxxxxxxxxxx
# Node ID 8204a2d6cd55efb792d3a3e9c18e99c20a37622e
# Parent 7e9ec4b2cc3cc2241b42f75e0cc5470bba97a3bb
Initialize pointer array for set mapping.
Signed-off-by: Yunhong Jiang <yunhong.jiang@xxxxxxxxx>
diff -r 7e9ec4b2cc3c -r 8204a2d6cd55 tools/ioemu/vl.c
--- a/tools/ioemu/vl.c Wed Sep 28 13:07:25 2005
+++ b/tools/ioemu/vl.c Wed Sep 28 13:07:57 2005
@@ -2385,7 +2385,8 @@
setup_mapping(int xc_handle, u32 dom, unsigned long toptab, unsigned long
*mem_page_array, unsigned long *page_table_array, unsigned long v_start,
unsigned long v_end)
{
l1_pgentry_t *vl1tab=NULL, *vl1e=NULL;
- l2_pgentry_t *vl2tab[4], *vl2e=NULL, *vl2_table = NULL;
+ l2_pgentry_t *vl2tab[4] = {NULL, NULL, NULL, NULL};
+ l2_pgentry_t *vl2e=NULL, *vl2_table = NULL;
unsigned long l1tab;
unsigned long ppt_alloc = 0;
unsigned long count;
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|