On Wed, Jun 11, 2014 at 10:19 PM, Paolo Bonzini <[email protected]> wrote:
> This will be used (after QOMification) as the QOM parent.
>
> Signed-off-by: Paolo Bonzini <[email protected]>

Reviewed-by: Peter Crosthwaite <[email protected]>

> ---
>  memory.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/memory.c b/memory.c
> index 06a4af7..b40055c 100644
> --- a/memory.c
> +++ b/memory.c
> @@ -848,7 +848,7 @@ void memory_region_init(MemoryRegion *mr,
>  {
>      mr->ops = &unassigned_mem_ops;
>      mr->opaque = NULL;
> -    mr->owner = owner;
> +    mr->owner = owner ? owner : qdev_get_machine();
>      mr->iommu_ops = NULL;
>      mr->parent = NULL;
>      mr->size = int128_make64(size);
> --
> 1.8.3.1
>
>
>

Reply via email to