Commit 2af16876 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

USB: fix usb_unlink_urb() usage in visor driver

Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent d3d55268
...@@ -446,9 +446,9 @@ static void visor_close (struct usb_serial_port *port, struct file * filp) ...@@ -446,9 +446,9 @@ static void visor_close (struct usb_serial_port *port, struct file * filp)
dbg("%s - port %d", __FUNCTION__, port->number); dbg("%s - port %d", __FUNCTION__, port->number);
/* shutdown our urbs */ /* shutdown our urbs */
usb_unlink_urb (port->read_urb); usb_kill_urb(port->read_urb);
if (port->interrupt_in_urb) if (port->interrupt_in_urb)
usb_unlink_urb (port->interrupt_in_urb); usb_kill_urb(port->interrupt_in_urb);
/* Try to send shutdown message, if the device is gone, this will just fail. */ /* Try to send shutdown message, if the device is gone, this will just fail. */
transfer_buffer = kmalloc (0x12, GFP_KERNEL); transfer_buffer = kmalloc (0x12, GFP_KERNEL);
...@@ -655,7 +655,7 @@ static void visor_read_int_callback (struct urb *urb, struct pt_regs *regs) ...@@ -655,7 +655,7 @@ static void visor_read_int_callback (struct urb *urb, struct pt_regs *regs)
static void visor_throttle (struct usb_serial_port *port) static void visor_throttle (struct usb_serial_port *port)
{ {
dbg("%s - port %d", __FUNCTION__, port->number); dbg("%s - port %d", __FUNCTION__, port->number);
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