Revision 4accd107

b/hw/xen_platform.c
87 87
{
88 88
    if (pci_get_word(d->config + PCI_CLASS_DEVICE) ==
89 89
            PCI_CLASS_NETWORK_ETHERNET) {
90
        qdev_unplug(&(d->qdev), NULL);
90
        /* Until qdev_free includes a call to object_unparent, we call it here
91
         */
92
        object_unparent(&d->qdev.parent_obj);
93
        qdev_free(&d->qdev);
91 94
    }
92 95
}
93 96

  

Also available in: Unified diff