|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] ioemu: Initialize ioport_opaque, ioport_r
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1206010012 0
# Node ID 27df0fe73b319f23e444c90e361c517baa1a940b
# Parent edfd0c343b13e76f04b6dc491be30464f0fe6216
ioemu: Initialize ioport_opaque, ioport_read/write_table to zero
Signed-off-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>
---
tools/ioemu/vl.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff -r edfd0c343b13 -r 27df0fe73b31 tools/ioemu/vl.c
--- a/tools/ioemu/vl.c Wed Mar 19 16:21:39 2008 +0000
+++ b/tools/ioemu/vl.c Thu Mar 20 10:46:52 2008 +0000
@@ -281,9 +281,9 @@ void default_ioport_writel(void *opaque,
void init_ioports(void)
{
- ioport_opaque = malloc(MAX_IOPORTS * sizeof(*ioport_opaque));
- ioport_read_table = malloc(3 * MAX_IOPORTS * sizeof(**ioport_read_table));
- ioport_write_table = malloc(3 * MAX_IOPORTS *
sizeof(**ioport_write_table));
+ ioport_opaque = calloc(MAX_IOPORTS, sizeof(*ioport_opaque));
+ ioport_read_table = calloc(3 * MAX_IOPORTS, sizeof(**ioport_read_table));
+ ioport_write_table = calloc(3 * MAX_IOPORTS, sizeof(**ioport_write_table));
}
/* size is the word size in byte */
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] ioemu: Initialize ioport_opaque, ioport_read/write_table to zero,
Xen patchbot-unstable <=
|
|
|
|
|