summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/usb/serial/quatech2.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/usb/serial/quatech2.c')
-rw-r--r--kernel/drivers/usb/serial/quatech2.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/kernel/drivers/usb/serial/quatech2.c b/kernel/drivers/usb/serial/quatech2.c
index 504f5bff7..a3ed07c58 100644
--- a/kernel/drivers/usb/serial/quatech2.c
+++ b/kernel/drivers/usb/serial/quatech2.c
@@ -141,6 +141,7 @@ static void qt2_release(struct usb_serial *serial)
serial_priv = usb_get_serial_data(serial);
+ usb_kill_urb(serial_priv->read_urb);
usb_free_urb(serial_priv->read_urb);
kfree(serial_priv->read_buffer);
kfree(serial_priv);
@@ -407,16 +408,12 @@ static void qt2_close(struct usb_serial_port *port)
{
struct usb_serial *serial;
struct qt2_port_private *port_priv;
- unsigned long flags;
int i;
serial = port->serial;
port_priv = usb_get_serial_port_data(port);
- spin_lock_irqsave(&port_priv->urb_lock, flags);
usb_kill_urb(port_priv->write_urb);
- port_priv->urb_in_use = false;
- spin_unlock_irqrestore(&port_priv->urb_lock, flags);
/* flush the port transmit buffer */
i = usb_control_msg(serial->dev,