From: Liu Ping Fan <pingf...@linux.vnet.ibm.com> We are not long to force to delete the obj at that place, just let its refcnt handle this issue.
Signed-off-by: Liu Ping Fan <pingf...@linux.vnet.ibm.com> --- hw/acpi_piix4.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/hw/acpi_piix4.c b/hw/acpi_piix4.c index 0aace60..f00d4d8 100644 --- a/hw/acpi_piix4.c +++ b/hw/acpi_piix4.c @@ -305,8 +305,11 @@ static void acpi_piix_eject_slot(PIIX4PMState *s, unsigned slots) if (pc->no_hotplug) { slot_free = false; } else { +#if 0 object_unparent(OBJECT(dev)); qdev_free(qdev); +#endif + qdev_delete_subtree(qdev); } } } -- 1.7.4.4