|
@@ -661,7 +661,9 @@ void qt2_process_read_urb(struct urb *urb)
|
|
|
__func__);
|
|
|
break;
|
|
|
}
|
|
|
- tty_flip_buffer_push(&port->port);
|
|
|
+
|
|
|
+ if (port_priv->is_open)
|
|
|
+ tty_flip_buffer_push(&port->port);
|
|
|
|
|
|
newport = *(ch + 3);
|
|
|
|
|
@@ -704,7 +706,8 @@ void qt2_process_read_urb(struct urb *urb)
|
|
|
tty_insert_flip_string(&port->port, ch, 1);
|
|
|
}
|
|
|
|
|
|
- tty_flip_buffer_push(&port->port);
|
|
|
+ if (port_priv->is_open)
|
|
|
+ tty_flip_buffer_push(&port->port);
|
|
|
}
|
|
|
|
|
|
static void qt2_write_bulk_callback(struct urb *urb)
|