]> git.proxmox.com Git - mirror_qemu.git/commit
virt: Fix crash when introspecting the device
authorAlistair Francis <alistair.francis@wdc.com>
Mon, 16 Jul 2018 22:30:47 +0000 (15:30 -0700)
committerAlistair Francis <alistair.francis@wdc.com>
Thu, 19 Jul 2018 16:05:48 +0000 (09:05 -0700)
commita993cb150f228fc5cfee128c44ffb06bf285e7ea
treebf36a8cdd2353b4bae6b210a2f6aca837c409f6b
parent4eea9d7deb2332c9010ddea9dcd8680adad1bfed
virt: Fix crash when introspecting the device

Use the new object_initialize_child() and sysbus_init_child_obj() to
fix the issue.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Suggested-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Michael Clark <mjc@sifive.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
hw/riscv/virt.c