Commit 221b7993 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

USB: fix usb_unlink_urb() usage in ir-usb driver

Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 0f694983
...@@ -322,7 +322,7 @@ static void ir_close (struct usb_serial_port *port, struct file * filp) ...@@ -322,7 +322,7 @@ static void ir_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 bulk read */ /* shutdown our bulk read */
usb_unlink_urb (port->read_urb); usb_kill_urb(port->read_urb);
} }
static int ir_write (struct usb_serial_port *port, int from_user, const unsigned char *buf, int count) static int ir_write (struct usb_serial_port *port, int from_user, const unsigned char *buf, int count)
......
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