diff options
Diffstat (limited to 'hw/usb/dev-serial.c')
-rw-r--r-- | hw/usb/dev-serial.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/usb/dev-serial.c b/hw/usb/dev-serial.c index 47ac8c9b69..7c314dc59d 100644 --- a/hw/usb/dev-serial.c +++ b/hw/usb/dev-serial.c @@ -495,7 +495,7 @@ static int usb_serial_initfn(USBDevice *dev) usb_serial_event, s); usb_serial_handle_reset(dev); - if (s->cs->opened && !dev->attached) { + if (s->cs->be_open && !dev->attached) { usb_device_attach(dev); } return 0; |