Message ID | 1401452542-11080-4-git-send-email-arei.gonglei@huawei.com |
---|---|
State | New |
Headers | show |
diff --git a/hw/usb/hcd-uhci.c b/hw/usb/hcd-uhci.c index 9b1166b..27b1f04 100644 --- a/hw/usb/hcd-uhci.c +++ b/hw/usb/hcd-uhci.c @@ -1295,6 +1295,10 @@ static void usb_uhci_exit(PCIDevice *dev) UHCIState *s = DO_UPCAST(UHCIState, dev, dev); memory_region_destroy(&s->io_bar); + + if (!s->masterbus) { + usb_bus_release(&s->bus); + } } static Property uhci_properties[] = {