Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 185413
b: refs/heads/master
c: 67ccbd6
h: refs/heads/master
i:
  185411: 22c5396
v: v3
  • Loading branch information
Alan Cox authored and Greg Kroah-Hartman committed Mar 2, 2010
1 parent cf6b8d7 commit bd6861e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 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: 5d3034ab8faea229942e79d867d18722d5375b12
refs/heads/master: 67ccbd6f1af3025af3224be5c4f992aaf8811334
18 changes: 3 additions & 15 deletions trunk/drivers/usb/serial/whiteheat.c
Original file line number Diff line number Diff line change
Expand Up @@ -1492,21 +1492,9 @@ static void rx_data_softint(struct work_struct *work)
wrap = list_entry(tmp, struct whiteheat_urb_wrap, list);
urb = wrap->urb;

if (tty && urb->actual_length) {
int len = tty_buffer_request_room(tty,
urb->actual_length);
/* This stuff can go away now I suspect */
if (unlikely(len < urb->actual_length)) {
spin_lock_irqsave(&info->lock, flags);
list_add(tmp, &info->rx_urb_q);
spin_unlock_irqrestore(&info->lock, flags);
tty_flip_buffer_push(tty);
schedule_work(&info->rx_work);
goto out;
}
tty_insert_flip_string(tty, urb->transfer_buffer, len);
sent += len;
}
if (tty && urb->actual_length)
sent += tty_insert_flip_string(tty,
urb->transfer_buffer, urb->actual_length);

urb->dev = port->serial->dev;
result = usb_submit_urb(urb, GFP_ATOMIC);
Expand Down

0 comments on commit bd6861e

Please sign in to comment.