mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue