diff options
Diffstat (limited to 'drivers/usb/serial/ir-usb.c')
-rw-r--r-- | drivers/usb/serial/ir-usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/serial/ir-usb.c b/drivers/usb/serial/ir-usb.c index e24e2d4f4c1b..171dae1f4a62 100644 --- a/drivers/usb/serial/ir-usb.c +++ b/drivers/usb/serial/ir-usb.c | |||
@@ -305,7 +305,7 @@ static void ir_process_read_urb(struct urb *urb) | |||
305 | tty = tty_port_tty_get(&port->port); | 305 | tty = tty_port_tty_get(&port->port); |
306 | if (!tty) | 306 | if (!tty) |
307 | return; | 307 | return; |
308 | tty_insert_flip_string(tty, data + 1, urb->actual_length - 1); | 308 | tty_insert_flip_string(&port->port, data + 1, urb->actual_length - 1); |
309 | tty_flip_buffer_push(tty); | 309 | tty_flip_buffer_push(tty); |
310 | tty_kref_put(tty); | 310 | tty_kref_put(tty); |
311 | } | 311 | } |