]> Git Repo - qemu.git/blobdiff - hw/usb-hub.c
Rearrange SCSI disk emulation code.
[qemu.git] / hw / usb-hub.c
index e2cb283ef9ca5688311d9efcc8a917f4fa5ebd09..c69d69cc8401971e5023176821d6bc98337dbbb8 100644 (file)
@@ -199,9 +199,11 @@ static void usb_hub_attach(USBPort *port1, USBDevice *dev)
     }
 }
 
-static void usb_hub_handle_reset(USBDevice *dev)
+static void usb_hub_handle_reset(USBDevice *dev, int destroy)
 {
     /* XXX: do it */
+    if (destroy)
+        qemu_free(dev);
 }
 
 static int usb_hub_handle_control(USBDevice *dev, int request, int value,
This page took 0.023395 seconds and 4 git commands to generate.