Skip to content

Commit

Permalink
usb: visor kill urb cleanup
Browse files Browse the repository at this point in the history
- usb_kill_urb() cleanup

Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Mariusz Kozlowski authored and Greg Kroah-Hartman committed Dec 1, 2006
1 parent 95d4316 commit bcb54a5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/usb/serial/visor.c
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,7 @@ static void visor_close (struct usb_serial_port *port, struct file * filp)

/* shutdown our urbs */
usb_kill_urb(port->read_urb);
if (port->interrupt_in_urb)
usb_kill_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. */
transfer_buffer = kmalloc (0x12, GFP_KERNEL);
Expand Down

0 comments on commit bcb54a5

Please sign in to comment.