summaryrefslogtreecommitdiff
path: root/memory.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2013-07-15 15:48:50 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2013-07-18 06:03:25 +0200
commitb4afea11aafe85975e74dd562bb94f7ce3de1ef1 (patch)
tree6927174f71a2cbc29ff75a346fc6e30c6b81c783 /memory.c
parentcb85f7ab045e8c05ee182b3573c9aba8e287e36b (diff)
downloadqemu-b4afea11aafe85975e74dd562bb94f7ce3de1ef1.tar.gz
qemu-b4afea11aafe85975e74dd562bb94f7ce3de1ef1.tar.bz2
qemu-b4afea11aafe85975e74dd562bb94f7ce3de1ef1.zip
memory: actually set the owner
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>
Diffstat (limited to 'memory.c')
-rw-r--r--memory.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/memory.c b/memory.c
index c8f9a2bfb3..9938b6ba45 100644
--- 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();