Commit 6cd8c6c6 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

USB: fix usb_unlink_urb() usage in generic usb-serial driver

Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 5426b1c4
......@@ -147,9 +147,9 @@ static void generic_cleanup (struct usb_serial_port *port)
if (serial->dev) {
/* shutdown any bulk reads that might be going on */
if (serial->num_bulk_out)
usb_unlink_urb (port->write_urb);
usb_kill_urb(port->write_urb);
if (serial->num_bulk_in)
usb_unlink_urb (port->read_urb);
usb_kill_urb(port->read_urb);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment