aboutsummaryrefslogtreecommitdiff
path: root/hw/display/cirrus_vga_isa.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/display/cirrus_vga_isa.c')
-rw-r--r--hw/display/cirrus_vga_isa.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/display/cirrus_vga_isa.c b/hw/display/cirrus_vga_isa.c
index 4f6fb1af3b..96144bd690 100644
--- a/hw/display/cirrus_vga_isa.c
+++ b/hw/display/cirrus_vga_isa.c
@@ -56,7 +56,9 @@ static void isa_cirrus_vga_realizefn(DeviceState *dev, Error **errp)
return;
}
s->global_vmstate = true;
- vga_common_init(s, OBJECT(dev));
+ if (!vga_common_init(s, OBJECT(dev), errp)) {
+ return;
+ }
cirrus_init_common(&d->cirrus_vga, OBJECT(dev), CIRRUS_ID_CLGD5430, 0,
isa_address_space(isadev),
isa_address_space_io(isadev));