]> git.proxmox.com Git - qemu.git/commitdiff
memory: actually set the owner
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 15 Jul 2013 13:48:50 +0000 (15:48 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 18 Jul 2013 04:03:25 +0000 (06:03 +0200)
Brown paper bag for me.  Originally commit 803c0816 came before commit
2c9b15c.  When the order was inverted, I left in the NULL initialization
of mr->owner.

Reviewed-by: Hu Tao <hutao@cn.fujitsu.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
memory.c

index c8f9a2bfb3dd863f58c10dc0c97d69168e38792a..9938b6ba458e6e3caeb18d64b9fac2c64bc04c34 100644 (file)
--- a/memory.c
+++ b/memory.c
@@ -805,7 +805,6 @@ void memory_region_init(MemoryRegion *mr,
     mr->owner = owner;
     mr->iommu_ops = NULL;
     mr->parent = NULL;
-    mr->owner = NULL;
     mr->size = int128_make64(size);
     if (size == UINT64_MAX) {
         mr->size = int128_2_64();