Patchwork [10/39] exec.c: fix initialization of system I/O memory region

login
register
mail settings
Submitter Avi Kivity
Date July 31, 2011, 5:57 p.m.
Message ID <1312135082-31985-11-git-send-email-avi@redhat.com>
Download mbox | patch
Permalink /patch/107640/
State New
Headers show

Comments

Avi Kivity - July 31, 2011, 5:57 p.m.
Signed-off-by: Avi Kivity <avi@redhat.com>
---
 exec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/exec.c b/exec.c
index 2fd4adb..11f6641 100644
--- a/exec.c
+++ b/exec.c
@@ -3823,7 +3823,7 @@  static void memory_map_init(void)
     set_system_memory_map(system_memory);
 
     system_io = qemu_malloc(sizeof(*system_io));
-    memory_region_init(system_memory, "io", 65536);
+    memory_region_init(system_io, "io", 65536);
     set_system_io_map(system_io);
 }