diff options
author | Johan Hovold <jhovold@gmail.com> | 2014-05-26 19:22:56 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-27 15:04:03 -0700 |
commit | c9d838a898fe232dd51eb924a17cee346bcb697c (patch) | |
tree | 9dd147c541d5be2645255e815293ee280240f70b /drivers/usb/serial/sierra.c | |
parent | 93670599fc52217dcf8a69832faf66171cdb9581 (diff) |
USB: sierra: fix urbs not being killed on shutdown
Make sure to stop all I/O, including any active write urbs, at shutdown.
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial/sierra.c')
-rw-r--r-- | drivers/usb/serial/sierra.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/serial/sierra.c b/drivers/usb/serial/sierra.c index ed43b18ace78..96ad379a0681 100644 --- a/drivers/usb/serial/sierra.c +++ b/drivers/usb/serial/sierra.c @@ -813,6 +813,8 @@ static void sierra_close(struct usb_serial_port *port) } sierra_stop_rx_urbs(port); + usb_kill_anchored_urbs(&portdata->active); + for (i = 0; i < portdata->num_in_urbs; i++) { sierra_release_urb(portdata->in_urbs[i]); portdata->in_urbs[i] = NULL; |