OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.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
|
history
diff --git
a/drivers/usb/serial/sierra.c
b/drivers/usb/serial/sierra.c
index
ed43b18
..
96ad379
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;