Commit c4c3ce8e authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

USB: fix usb_unlink_urb() usage in cyberjack driver

Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 2e7970b7
...@@ -149,7 +149,7 @@ static void cyberjack_shutdown (struct usb_serial *serial) ...@@ -149,7 +149,7 @@ static void cyberjack_shutdown (struct usb_serial *serial)
dbg("%s", __FUNCTION__); dbg("%s", __FUNCTION__);
for (i=0; i < serial->num_ports; ++i) { for (i=0; i < serial->num_ports; ++i) {
usb_unlink_urb (serial->port[i]->interrupt_in_urb); usb_kill_urb(serial->port[i]->interrupt_in_urb);
/* My special items, the standard routines free my urbs */ /* My special items, the standard routines free my urbs */
kfree(usb_get_serial_port_data(serial->port[i])); kfree(usb_get_serial_port_data(serial->port[i]));
usb_set_serial_port_data(serial->port[i], NULL); usb_set_serial_port_data(serial->port[i], NULL);
...@@ -189,8 +189,8 @@ static void cyberjack_close (struct usb_serial_port *port, struct file *filp) ...@@ -189,8 +189,8 @@ static void cyberjack_close (struct usb_serial_port *port, struct file *filp)
if (port->serial->dev) { if (port->serial->dev) {
/* shutdown any bulk reads that might be going on */ /* shutdown any bulk reads that might be going on */
usb_unlink_urb (port->write_urb); usb_kill_urb(port->write_urb);
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