summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/usb/serial/keyspan.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/usb/serial/keyspan.c')
-rw-r--r--kernel/drivers/usb/serial/keyspan.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/drivers/usb/serial/keyspan.c b/kernel/drivers/usb/serial/keyspan.c
index e07b15ed5..7faa901ee 100644
--- a/kernel/drivers/usb/serial/keyspan.c
+++ b/kernel/drivers/usb/serial/keyspan.c
@@ -2376,6 +2376,10 @@ static void keyspan_release(struct usb_serial *serial)
s_priv = usb_get_serial_data(serial);
+ /* Make sure to unlink the URBs submitted in attach. */
+ usb_kill_urb(s_priv->instat_urb);
+ usb_kill_urb(s_priv->indat_urb);
+
usb_free_urb(s_priv->instat_urb);
usb_free_urb(s_priv->indat_urb);
usb_free_urb(s_priv->glocont_urb);