]> Git Repo - qemu.git/commitdiff
usb-serial: don't magically zap chardev on umplug
authorGerd Hoffmann <[email protected]>
Wed, 17 Oct 2012 07:54:24 +0000 (09:54 +0200)
committerAnthony Liguori <[email protected]>
Mon, 22 Oct 2012 18:26:42 +0000 (13:26 -0500)
Signed-off-by: Gerd Hoffmann <[email protected]>
Signed-off-by: Anthony Liguori <[email protected]>
hw/usb/dev-serial.c

index 69b6e48d5a2a6cb892db854fe7b61e68761687c9..43214cdd9c0d154f4d8226e7d8d7ead2079c4742 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)
This page took 0.024849 seconds and 4 git commands to generate.