Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
---
hw/core/null-machine.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/core/null-machine.c b/hw/core/null-machine.c
index 1aa0a9a01a..16546c8140 100644
--- a/hw/core/null-machine.c
+++ b/hw/core/null-machine.c
@@ -35,7 +35,7 @@ static void machine_none_init(MachineState *mch)
if (mch->ram_size) {
MemoryRegion *ram = g_new(MemoryRegion, 1);
- memory_region_allocate_system_memory(ram, NULL, "ram", mch->ram_size);
+ memory_region_allocate_system_memory(ram, mch, "ram", mch->ram_size);
memory_region_add_subregion(get_system_memory(), 0, ram);
}
--
2.21.0