diff options
author | Willem Penninckx <willem.penninckx@cs.kuleuven.be> | 2011-11-23 11:26:45 +0100 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2011-11-23 12:31:04 +0100 |
commit | a2b2c20ba2f6e22c065f401d63f7f883779cf642 (patch) | |
tree | 98bb54c4c39d0224dfe047847f623432d6fbe31a /drivers/hid | |
parent | c196adf87514560f867492978ae350d4bbced0bd (diff) | |
download | linux-a2b2c20ba2f6e22c065f401d63f7f883779cf642.tar.gz linux-a2b2c20ba2f6e22c065f401d63f7f883779cf642.tar.bz2 linux-a2b2c20ba2f6e22c065f401d63f7f883779cf642.zip |
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')
-rw-r--r-- | drivers/hid/usbhid/usbkbd.c | 1 |
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) 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); } |