Commit b4afea11 authored by Paolo Bonzini's avatar Paolo Bonzini

memory: actually set the owner

Brown paper bag for me.  Originally commit 803c0816 came before commit
2c9b15ca.  When the order was inverted, I left in the NULL initialization
of mr->owner.
Reviewed-by: default avatarHu Tao <hutao@cn.fujitsu.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent cb85f7ab
......@@ -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();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment