Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 326033
b: refs/heads/master
c: 8321652
h: refs/heads/master
i:
  326031: c00fc20
v: v3
  • Loading branch information
Alexey Khoroshilov authored and Greg Kroah-Hartman committed Sep 14, 2012
1 parent 46726b4 commit eee283f
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 17e6791082e3dc34d0b43fd50ff8655fdfcc3a99
refs/heads/master: 8321652ae22f38830af5b553f3a316d68948ddce
8 changes: 5 additions & 3 deletions trunk/drivers/usb/serial/omninet.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,12 @@ static void omninet_read_bulk_callback(struct urb *urb)

if (urb->actual_length && header->oh_len) {
struct tty_struct *tty = tty_port_tty_get(&port->port);
tty_insert_flip_string(tty, data + OMNINET_DATAOFFSET,
if (tty) {
tty_insert_flip_string(tty, data + OMNINET_DATAOFFSET,
header->oh_len);
tty_flip_buffer_push(tty);
tty_kref_put(tty);
tty_flip_buffer_push(tty);
tty_kref_put(tty);
}
}

/* Continue trying to always read */
Expand Down

0 comments on commit eee283f

Please sign in to comment.