summaryrefslogtreecommitdiffstats
path: root/hw/misc/mmio_interface.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/misc/mmio_interface.c')
-rw-r--r--hw/misc/mmio_interface.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/misc/mmio_interface.c b/hw/misc/mmio_interface.c
index 6f004d2bab..da154e5c95 100644
--- a/hw/misc/mmio_interface.c
+++ b/hw/misc/mmio_interface.c
@@ -63,10 +63,12 @@ static void mmio_interface_realize(DeviceState *dev, Error **errp)
if (!s->host_ptr) {
error_setg(errp, "host_ptr property must be set");
+ return;
}
if (!s->subregion) {
error_setg(errp, "subregion property must be set");
+ return;
}
memory_region_init_ram_ptr(&s->ram_mem, OBJECT(s), "ram",