Commit 6aa9d4c3 authored by Borislav Petkov's avatar Borislav Petkov Committed by Greg Kroah-Hartman

[PATCH] USB: remove calls to usb_unlink_urb in class/cdc-acm.c

Signed-off-by: default avatarBorislav Petkov <petkov@uni-muenster.de>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent cf371fa2
......@@ -306,9 +306,9 @@ static int acm_tty_open(struct tty_struct *tty, struct file *filp)
return 0;
full_bailout:
usb_unlink_urb(acm->readurb);
usb_kill_urb(acm->readurb);
bail_out_and_unlink:
usb_unlink_urb(acm->ctrlurb);
usb_kill_urb(acm->ctrlurb);
bail_out:
up(&open_sem);
return -EIO;
......@@ -325,9 +325,9 @@ static void acm_tty_close(struct tty_struct *tty, struct file *filp)
if (!--acm->used) {
if (acm->dev) {
acm_set_control(acm, acm->ctrlout = 0);
usb_unlink_urb(acm->ctrlurb);
usb_unlink_urb(acm->writeurb);
usb_unlink_urb(acm->readurb);
usb_kill_urb(acm->ctrlurb);
usb_kill_urb(acm->writeurb);
usb_kill_urb(acm->readurb);
} else {
tty_unregister_device(acm_tty_driver, acm->minor);
acm_table[acm->minor] = NULL;
......@@ -778,9 +778,9 @@ static void acm_disconnect(struct usb_interface *intf)
acm->dev = NULL;
usb_set_intfdata (intf, NULL);
usb_unlink_urb(acm->ctrlurb);
usb_unlink_urb(acm->readurb);
usb_unlink_urb(acm->writeurb);
usb_kill_urb(acm->ctrlurb);
usb_kill_urb(acm->readurb);
usb_kill_urb(acm->writeurb);
flush_scheduled_work(); /* wait for acm_softint */
......
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