projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c196adf
)
HID: usbkbd: kill LED URB on disconnect
author
Willem Penninckx
<willem.penninckx@cs.kuleuven.be>
Wed, 23 Nov 2011 10:26:45 +0000
(11:26 +0100)
committer
Jiri Kosina
<jkosina@suse.cz>
Wed, 23 Nov 2011 11:31:04 +0000
(12:31 +0100)
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>
drivers/hid/usbhid/usbkbd.c
patch
|
blob
|
history
diff --git
a/drivers/hid/usbhid/usbkbd.c
b/drivers/hid/usbhid/usbkbd.c
index
052346f
..
a7b925a
100644
(file)
--- 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);
}