qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] memory: fix memory_region_init_rom_device() not initializing ->ops
@ 2011-08-25 11:57 Avi Kivity
  0 siblings, 0 replies; only message in thread
From: Avi Kivity @ 2011-08-25 11:57 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: qemu-devel

Signed-off-by: Avi Kivity <avi@redhat.com>
---
 memory.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/memory.c b/memory.c
index 8e9ac46..b91c5da 100644
--- a/memory.c
+++ b/memory.c
@@ -967,6 +967,7 @@ void memory_region_init_rom_device(MemoryRegion *mr,
                                    uint64_t size)
 {
     memory_region_init(mr, name, size);
+    mr->ops = ops;
     mr->terminates = true;
     mr->destructor = memory_region_destructor_rom_device;
     mr->ram_addr = qemu_ram_alloc(dev, name, size);
-- 
1.7.5.3

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-08-25 11:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-25 11:57 [Qemu-devel] [PATCH] memory: fix memory_region_init_rom_device() not initializing ->ops Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).