HID: usbkbd: kill LED URB on disconnect
authorWillem Penninckx <willem.penninckx@cs.kuleuven.be>
Wed, 23 Nov 2011 10:26:45 +0000 (11:26 +0100)
committerJiri Kosina <jkosina@suse.cz>
Wed, 23 Nov 2011 11:31:04 +0000 (12:31 +0100)
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>
drivers/hid/usbhid/usbkbd.c

index 052346f..a7b925a 100644 (file)
@@ -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);
        }