Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 185404
b: refs/heads/master
c: b87c6e8
h: refs/heads/master
v: v3
  • Loading branch information
Elina Pasheva authored and Greg Kroah-Hartman committed Mar 2, 2010
1 parent d8933fe commit 0fcde01
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7650cd9678df29b01d1e46a9d2ce7e5d8c72b3ce
refs/heads/master: b87c6e86dac1bb5222279cc8ff7e09529e1c4ed9
19 changes: 11 additions & 8 deletions trunk/drivers/usb/serial/sierra.c
Original file line number Diff line number Diff line change
Expand Up @@ -594,14 +594,17 @@ static void sierra_indat_callback(struct urb *urb)
} else {
if (urb->actual_length) {
tty = tty_port_tty_get(&port->port);

tty_buffer_request_room(tty, urb->actual_length);
tty_insert_flip_string(tty, data, urb->actual_length);
tty_flip_buffer_push(tty);

tty_kref_put(tty);
usb_serial_debug_data(debug, &port->dev, __func__,
urb->actual_length, data);
if (tty) {
tty_buffer_request_room(tty,
urb->actual_length);
tty_insert_flip_string(tty, data,
urb->actual_length);
tty_flip_buffer_push(tty);

tty_kref_put(tty);
usb_serial_debug_data(debug, &port->dev,
__func__, urb->actual_length, data);
}
} else {
dev_dbg(&port->dev, "%s: empty read urb"
" received\n", __func__);
Expand Down

0 comments on commit 0fcde01

Please sign in to comment.