diff options
author | Joris van Rantwijk <jorispubl@xs4all.nl> | 2009-09-24 14:20:20 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-10-09 16:52:08 -0400 |
commit | 63a9609513007537a0b23ac511fd73f9bd609ea0 (patch) | |
tree | 59d215868c66fc5dede76b35f0996514c0984781 | |
parent | 6f88139eb9eae8003683689f93402264a73fb754 (diff) |
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 <jorispubl@xs4all.nl>
Acked-by: Johan Hovold <jhovold@gmail.com>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/usb/serial/generic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/serial/generic.c b/drivers/usb/serial/generic.c index deba08c7a015..bbe005cefcfb 100644 --- a/drivers/usb/serial/generic.c +++ b/drivers/usb/serial/generic.c | |||
@@ -546,7 +546,7 @@ void usb_serial_generic_unthrottle(struct tty_struct *tty) | |||
546 | 546 | ||
547 | if (was_throttled) { | 547 | if (was_throttled) { |
548 | /* Resume reading from device */ | 548 | /* Resume reading from device */ |
549 | usb_serial_generic_resubmit_read_urb(port, GFP_KERNEL); | 549 | flush_and_resubmit_read_urb(port); |
550 | } | 550 | } |
551 | } | 551 | } |
552 | 552 | ||