Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 74322
b: refs/heads/master
c: bfaeafc
h: refs/heads/master
v: v3
  • Loading branch information
Borislav Petkov authored and Greg Kroah-Hartman committed Nov 28, 2007
1 parent 6ce873e commit 1a701ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: ed206ec9ab398e1c3756ff0eb9507db1d009e65f
refs/heads/master: bfaeafcfc2242277e31cc1cfae687afaac0cd9ec
5 changes: 3 additions & 2 deletions trunk/drivers/usb/serial/generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ void usb_serial_generic_read_bulk_callback (struct urb *urb)
struct usb_serial_port *port = (struct usb_serial_port *)urb->context;
unsigned char *data = urb->transfer_buffer;
int status = urb->status;
unsigned long flags;

dbg("%s - port %d", __FUNCTION__, port->number);

Expand All @@ -339,11 +340,11 @@ void usb_serial_generic_read_bulk_callback (struct urb *urb)
usb_serial_debug_data(debug, &port->dev, __FUNCTION__, urb->actual_length, data);

/* Throttle the device if requested by tty */
spin_lock(&port->lock);
spin_lock_irqsave(&port->lock, flags);
if (!(port->throttled = port->throttle_req))
/* Handle data and continue reading from device */
flush_and_resubmit_read_urb(port);
spin_unlock(&port->lock);
spin_unlock_irqrestore(&port->lock, flags);
}
EXPORT_SYMBOL_GPL(usb_serial_generic_read_bulk_callback);

Expand Down

0 comments on commit 1a701ce

Please sign in to comment.