Skip to content

Commit 63a9609

Browse files
Joris van Rantwijkgregkh
authored andcommitted
USB: Fix throttling in generic usbserial driver
The generic usbserial driver in Linux 2.6.31 halts its receiving channel in response to throttle requests from the line discipline. Unfortunately it drops the contents of the first URB received after throttling takes effect. This patch corrects that problem. Signed-off-by: Joris van Rantwijk <[email protected]> Acked-by: Johan Hovold <[email protected]> Cc: stable <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 6f88139 commit 63a9609

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/serial/generic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ void usb_serial_generic_unthrottle(struct tty_struct *tty)
546546

547547
if (was_throttled) {
548548
/* Resume reading from device */
549-
usb_serial_generic_resubmit_read_urb(port, GFP_KERNEL);
549+
flush_and_resubmit_read_urb(port);
550550
}
551551
}
552552

0 commit comments

Comments
 (0)