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>
This commit is contained in:
parent
c196adf875
commit
a2b2c20ba2
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue