diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2009-09-25 21:42:39 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-05 09:32:48 -0500 |
commit | a8e662b5477a7e3659c7fc2d83db50c42b201c1d (patch) | |
tree | 12dcfa0a4ef0960eec14ff44b772c8e0a5e80061 /hw/usb-bt.c | |
parent | e3936fa574d9fbe241acdc76b5195b048567537e (diff) |
usb: hook unplug into qdev, cleanups + fixes.
Hook into DeviceInfo->exit().
handle_destroy() must not free the state struct, this is handled
by the new usb_qdev_exit() function now.
qdev_free(usb_device) works now.
Fix usb hub to qdev_free() all connected devices on unplug.
Unplugging a usb hub works now.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/usb-bt.c')
-rw-r--r-- | hw/usb-bt.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/usb-bt.c b/hw/usb-bt.c index 70fd4dd533..18d7a98b43 100644 --- a/hw/usb-bt.c +++ b/hw/usb-bt.c @@ -614,7 +614,6 @@ static void usb_bt_handle_destroy(USBDevice *dev) s->hci->opaque = NULL; s->hci->evt_recv = NULL; s->hci->acl_recv = NULL; - qemu_free(s); } static int usb_bt_initfn(USBDevice *dev) |