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

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

Signed-off-by: default avatarBorislav Petkov <petkov@uni-muenster.de>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent c8de0f9b
......@@ -837,7 +837,7 @@ static void aiptek_close(struct input_dev *inputdev)
struct aiptek *aiptek = inputdev->private;
if (--aiptek->openCount == 0) {
usb_unlink_urb(aiptek->urb);
usb_kill_urb(aiptek->urb);
}
}
......@@ -2258,7 +2258,7 @@ static void aiptek_disconnect(struct usb_interface *intf)
if (aiptek != NULL) {
/* Free & unhook everything from the system.
*/
usb_unlink_urb(aiptek->urb);
usb_kill_urb(aiptek->urb);
input_unregister_device(&aiptek->inputdev);
aiptek_delete_files(&intf->dev);
usb_free_urb(aiptek->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