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

[PATCH] USB: usb_unlink_urb removal from input/ati_remote.c

Signed-off-by: default avatarBorislav Petkov <petkov@uni-muenster.de>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 1dc47eb7
......@@ -424,7 +424,7 @@ static int ati_remote_sendpacket(struct ati_remote *ati_remote, u16 cmd, unsigne
set_current_state(TASK_RUNNING);
remove_wait_queue(&ati_remote->wait, &wait);
usb_unlink_urb(ati_remote->out_urb);
usb_kill_urb(ati_remote->out_urb);
return retval;
}
......@@ -624,10 +624,10 @@ static void ati_remote_delete(struct ati_remote *ati_remote)
if (!ati_remote) return;
if (ati_remote->irq_urb)
usb_unlink_urb(ati_remote->irq_urb);
usb_kill_urb(ati_remote->irq_urb);
if (ati_remote->out_urb)
usb_unlink_urb(ati_remote->out_urb);
usb_kill_urb(ati_remote->out_urb);
input_unregister_device(&ati_remote->idev);
......
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