aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/serial/sierra.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/drivers/usb/serial/sierra.c b/drivers/usb/serial/sierra.c
index 6aeea40081c2..fcec46603558 100644
--- a/drivers/usb/serial/sierra.c
+++ b/drivers/usb/serial/sierra.c
@@ -594,14 +594,17 @@ static void sierra_indat_callback(struct urb *urb)
594 } else { 594 } else {
595 if (urb->actual_length) { 595 if (urb->actual_length) {
596 tty = tty_port_tty_get(&port->port); 596 tty = tty_port_tty_get(&port->port);
597 597 if (tty) {
598 tty_buffer_request_room(tty, urb->actual_length); 598 tty_buffer_request_room(tty,
599 tty_insert_flip_string(tty, data, urb->actual_length); 599 urb->actual_length);
600 tty_flip_buffer_push(tty); 600 tty_insert_flip_string(tty, data,
601 601 urb->actual_length);
602 tty_kref_put(tty); 602 tty_flip_buffer_push(tty);
603 usb_serial_debug_data(debug, &port->dev, __func__, 603
604 urb->actual_length, data); 604 tty_kref_put(tty);
605 usb_serial_debug_data(debug, &port->dev,
606 __func__, urb->actual_length, data);
607 }
605 } else { 608 } else {
606 dev_dbg(&port->dev, "%s: empty read urb" 609 dev_dbg(&port->dev, "%s: empty read urb"
607 " received\n", __func__); 610 " received\n", __func__);