diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2013-06-06 21:21:13 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2013-07-04 17:42:46 +0200 |
commit | 42e038fe918f4eecdd84ef9ee406bba1deb15cec (patch) | |
tree | f7f73166094ee9d3edf7ea77ed88b250ef22c6b7 /hw | |
parent | c84b28eeea1ab3f90e619b6af63e7db770c579ec (diff) | |
download | qemu-42e038fe918f4eecdd84ef9ee406bba1deb15cec.zip |
vga: set owner in vga_update_memory_access
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/display/vga.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/display/vga.c b/hw/display/vga.c index 7a6e935bcc..1657356415 100644 --- a/hw/display/vga.c +++ b/hw/display/vga.c @@ -198,7 +198,8 @@ static void vga_update_memory_access(VGACommonState *s) } base += isa_mem_base; region = g_malloc(sizeof(*region)); - memory_region_init_alias(region, NULL, "vga.chain4", &s->vram, offset, size); + memory_region_init_alias(region, memory_region_owner(&s->vram), + "vga.chain4", &s->vram, offset, size); memory_region_add_subregion_overlap(s->legacy_address_space, base, region, 2); s->chain4_alias = region; |