usb-serial: don't magically zap chardev on umplug
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 17 Oct 2012 07:54:24 +0000 (09:54 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 22 Oct 2012 18:26:42 +0000 (13:26 -0500)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/usb/dev-serial.c

index 69b6e48..43214cd 100644 (file)
@@ -421,7 +421,7 @@ static void usb_serial_handle_destroy(USBDevice *dev)
 {
     USBSerialState *s = (USBSerialState *)dev;
 
-    qemu_chr_delete(s->cs);
+    qemu_chr_add_handlers(s->cs, NULL, NULL, NULL, NULL);
 }
 
 static int usb_serial_can_read(void *opaque)