aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/usb/serial/ftdi_sio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c
index 9594e357a914..6af0dfa5f5ac 100644
--- a/drivers/usb/serial/ftdi_sio.c
+++ b/drivers/usb/serial/ftdi_sio.c
@@ -2492,8 +2492,7 @@ void ftdi_unthrottle(struct tty_struct *tty)
2492 port->throttled = port->throttle_req = 0; 2492 port->throttled = port->throttle_req = 0;
2493 spin_unlock_irqrestore(&port->lock, flags); 2493 spin_unlock_irqrestore(&port->lock, flags);
2494 2494
2495 /* Resubmit urb if throttled and open. */ 2495 if (was_throttled)
2496 if (was_throttled && test_bit(ASYNCB_INITIALIZED, &port->port.flags))
2497 ftdi_submit_read_urb(port, GFP_KERNEL); 2496 ftdi_submit_read_urb(port, GFP_KERNEL);
2498} 2497}
2499 2498