Skip to content

Commit

Permalink
HID: usbkbd: kill LED URB on disconnect
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Willem Penninckx authored and Jiri Kosina committed Nov 23, 2011
1 parent c196adf commit a2b2c20
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/hid/usbhid/usbkbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit a2b2c20

Please sign in to comment.