summaryrefslogtreecommitdiff
path: root/drivers/hid/usbhid
diff options
context:
space:
mode:
authorWillem Penninckx <willem.penninckx@cs.kuleuven.be>2011-11-23 11:26:45 +0100
committerJiri Kosina <jkosina@suse.cz>2011-11-23 12:31:04 +0100
commita2b2c20ba2f6e22c065f401d63f7f883779cf642 (patch)
tree98bb54c4c39d0224dfe047847f623432d6fbe31a /drivers/hid/usbhid
parentc196adf87514560f867492978ae350d4bbced0bd (diff)
HID: usbkbd: kill LED URB on disconnect
The LED URB was left unkilled when the USB device is disconnected. Signed-off-by: Willem Penninckx <willem.penninckx@cs.kuleuven.be> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/usbhid')
-rw-r--r--drivers/hid/usbhid/usbkbd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hid/usbhid/usbkbd.c b/drivers/hid/usbhid/usbkbd.c
index 052346f3ccb..a7b925aeaf2 100644
--- a/drivers/hid/usbhid/usbkbd.c
+++ b/drivers/hid/usbhid/usbkbd.c
@@ -387,6 +387,7 @@ static void usb_kbd_disconnect(struct usb_interface *intf)
if (kbd) {
usb_kill_urb(kbd->irq);
input_unregister_device(kbd->dev);
+ usb_kill_urb(kbd->led);
usb_kbd_free_mem(interface_to_usbdev(intf), kbd);
kfree(kbd);
}