Commit a2b2c20b authored by Willem Penninckx's avatar Willem Penninckx Committed by Jiri Kosina

HID: usbkbd: kill LED URB on disconnect

The LED URB was left unkilled when the USB device is disconnected.
Signed-off-by: default avatarWillem Penninckx <willem.penninckx@cs.kuleuven.be>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent c196adf8
...@@ -387,6 +387,7 @@ static void usb_kbd_disconnect(struct usb_interface *intf) ...@@ -387,6 +387,7 @@ static void usb_kbd_disconnect(struct usb_interface *intf)
if (kbd) { if (kbd) {
usb_kill_urb(kbd->irq); usb_kill_urb(kbd->irq);
input_unregister_device(kbd->dev); input_unregister_device(kbd->dev);
usb_kill_urb(kbd->led);
usb_kbd_free_mem(interface_to_usbdev(intf), kbd); usb_kbd_free_mem(interface_to_usbdev(intf), kbd);
kfree(kbd); kfree(kbd);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment