projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90734e0
)
usb-serial: don't magically zap chardev on umplug
author
Gerd Hoffmann
<kraxel@redhat.com>
Wed, 17 Oct 2012 07:54:24 +0000
(09:54 +0200)
committer
Anthony 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
patch
|
blob
|
history
diff --git
a/hw/usb/dev-serial.c
b/hw/usb/dev-serial.c
index 69b6e48d5a2a6cb892db854fe7b61e68761687c9..43214cdd9c0d154f4d8226e7d8d7ead2079c4742 100644
(file)
--- a/
hw/usb/dev-serial.c
+++ b/
hw/usb/dev-serial.c
@@
-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)