Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 233565
b: refs/heads/master
c: 38237fd
h: refs/heads/master
i:
  233563: 26d7196
v: v3
  • Loading branch information
Jiri Slaby authored and Greg Kroah-Hartman committed Feb 17, 2011
1 parent 1ac9c9f commit c59bcab
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 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: 637d11bfb814637ec7b81e878db3ffea6408a89a
refs/heads/master: 38237fd2be9421c104f84cc35665097bdce89013
15 changes: 9 additions & 6 deletions trunk/drivers/usb/serial/usb_wwan.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,12 +295,15 @@ static void usb_wwan_indat_callback(struct urb *urb)
__func__, status, endpoint);
} else {
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);
} else
dbg("%s: empty read urb received", __func__);
tty_kref_put(tty);
if (tty) {
if (urb->actual_length) {
tty_insert_flip_string(tty, data,
urb->actual_length);
tty_flip_buffer_push(tty);
} else
dbg("%s: empty read urb received", __func__);
tty_kref_put(tty);
}

/* Resubmit urb so we continue receiving */
if (status != -ESHUTDOWN) {
Expand Down

0 comments on commit c59bcab

Please sign in to comment.