qemu/hw/display
Paolo Bonzini 81e0ab48dd hw: do not pass NULL to memory_region_init from instance_init
This causes the region to outlive the object, because it attaches the
region to /machine.  This is not nice for the "realize" method, but
much worse for "instance_init" because it can cause dangling pointers
after a simple object_new/object_unref pair.

Reported-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Tested-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <1443689999-12182-3-git-send-email-armbru@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
2015-10-09 15:25:56 +02:00
..
ads7846.c
blizzard_template.h
blizzard.c
cg3.c hw: do not pass NULL to memory_region_init from instance_init 2015-10-09 15:25:56 +02:00
cirrus_vga_rop2.h
cirrus_vga_rop.h
cirrus_vga.c
exynos4210_fimd.c maint: avoid useless "if (foo) free(foo)" pattern 2015-09-11 10:21:38 +03:00
framebuffer.c
framebuffer.h
g364fb.c
jazz_led.c
Makefile.objs
milkymist-tmu2.c
milkymist-vgafb_template.h
milkymist-vgafb.c
omap_dss.c arm: Use g_new() & friends where that makes obvious sense 2015-09-07 10:39:27 +01:00
omap_lcd_template.h
omap_lcdc.c arm: Use g_new() & friends where that makes obvious sense 2015-09-07 10:39:27 +01:00
pl110_template.h
pl110.c
pxa2xx_lcd.c
pxa2xx_template.h
qxl-logger.c
qxl-render.c typofixes - v4 2015-09-11 10:45:43 +03:00
qxl.c Fix bad error handling after memory_region_init_ram() 2015-09-18 14:39:29 +02:00
qxl.h
sm501_template.h
sm501.c Fix bad error handling after memory_region_init_ram() 2015-09-18 14:39:29 +02:00
ssd0303.c
ssd0323.c
tc6393xb_template.h
tc6393xb.c Fix bad error handling after memory_region_init_ram() 2015-09-18 14:39:29 +02:00
tcx.c hw: do not pass NULL to memory_region_init from instance_init 2015-10-09 15:25:56 +02:00
vga_int.h
vga-helpers.h
vga-isa-mm.c
vga-isa.c
vga-pci.c
vga.c Fix bad error handling after memory_region_init_ram() 2015-09-18 14:39:29 +02:00
vga.h
virtio-gpu-pci.c
virtio-gpu.c
virtio-vga.c
vmware_vga.c Fix bad error handling after memory_region_init_ram() 2015-09-18 14:39:29 +02:00
xenfb.c