usb-serial: don't magically zap chardev on umplug
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
90734e02bd
commit
70330fb3da
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue