aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid/usbhid
diff options
context:
space:
mode:
authorWillem Penninckx <willem.penninckx@cs.kuleuven.be>2011-11-23 05:26:45 -0500
committerJiri Kosina <jkosina@suse.cz>2011-11-23 06:31:04 -0500
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 052346f3ccb4..a7b925aeaf2e 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)
387 if (kbd) { 387 if (kbd) {
388 usb_kill_urb(kbd->irq); 388 usb_kill_urb(kbd->irq);
389 input_unregister_device(kbd->dev); 389 input_unregister_device(kbd->dev);
390 usb_kill_urb(kbd->led);
390 usb_kbd_free_mem(interface_to_usbdev(intf), kbd); 391 usb_kbd_free_mem(interface_to_usbdev(intf), kbd);
391 kfree(kbd); 392 kfree(kbd);
392 } 393 }