提交 c9d838a8 编写于 作者: J Johan Hovold 提交者: Greg Kroah-Hartman

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: NJohan Hovold <jhovold@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 93670599
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册