Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 163865
b: refs/heads/master
c: 054f234
h: refs/heads/master
i:
  163863: 450229c
v: v3
  • Loading branch information
Jiri Slaby authored and Live-CD User committed Sep 19, 2009
1 parent f5bd2d3 commit 9d598a3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 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: 7e63d0c453aa3fae714bc679f6768203b5dc9c32
refs/heads/master: 054f2346cb0e524cbb678759bfedabfdba4d0100
9 changes: 6 additions & 3 deletions trunk/drivers/usb/serial/mct_u232.c
Original file line number Diff line number Diff line change
Expand Up @@ -566,10 +566,13 @@ static void mct_u232_read_int_callback(struct urb *urb)
* Work-a-round: handle the 'usual' bulk-in pipe here
*/
if (urb->transfer_buffer_length > 2) {
tty = tty_port_tty_get(&port->port);
if (urb->actual_length) {
tty_insert_flip_string(tty, data, urb->actual_length);
tty_flip_buffer_push(tty);
tty = tty_port_tty_get(&port->port);
if (tty) {
tty_insert_flip_string(tty, data,
urb->actual_length);
tty_flip_buffer_push(tty);
}
tty_kref_put(tty);
}
goto exit;
Expand Down

0 comments on commit 9d598a3

Please sign in to comment.