projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9367059
)
USB: sierra: fix urbs not being killed on shutdown
author
Johan Hovold
<jhovold@gmail.com>
Mon, 26 May 2014 17:22:56 +0000
(19:22 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Tue, 27 May 2014 22:04:03 +0000
(15:04 -0700)
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>
drivers/usb/serial/sierra.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/serial/sierra.c
b/drivers/usb/serial/sierra.c
index ed43b18ace7877d3eaa3e59cc80b7a60c1c3cf33..96ad379a0681fc4b6cbb3dc447a239cf63fcf06f 100644
(file)
--- 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;