From: Willem Penninckx Date: Wed, 23 Nov 2011 10:26:45 +0000 (+0100) Subject: HID: usbkbd: kill LED URB on disconnect X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a2b2c20ba2f6e22c065f401d63f7f883779cf642;p=linux-beck.git HID: usbkbd: kill LED URB on disconnect The LED URB was left unkilled when the USB device is disconnected. Signed-off-by: Willem Penninckx Signed-off-by: Jiri Kosina --- diff --git a/drivers/hid/usbhid/usbkbd.c b/drivers/hid/usbhid/usbkbd.c index 052346f3ccb4..a7b925aeaf2e 100644 --- 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); }