mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 21:30:54 +07:00
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) {
|
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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user