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

USB: fix usb_unlink_urb() usage in omninet driver

Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 6af886e6
...@@ -183,8 +183,8 @@ static void omninet_close (struct usb_serial_port *port, struct file * filp) ...@@ -183,8 +183,8 @@ static void omninet_close (struct usb_serial_port *port, struct file * filp)
dbg("%s - port %d", __FUNCTION__, port->number); dbg("%s - port %d", __FUNCTION__, port->number);
wport = serial->port[1]; wport = serial->port[1];
usb_unlink_urb(wport->write_urb); usb_kill_urb(wport->write_urb);
usb_unlink_urb(port->read_urb); usb_kill_urb(port->read_urb);
od = usb_get_serial_port_data(port); od = usb_get_serial_port_data(port);
if (od) if (od)
......
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