[PATCH 2/2] HID: usbkbd: kill LED URB on disconnect

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The LED URB was left unkilled when the USB device is disconnected.

Signed-off-by: Willem Penninckx <willem.penninckx@xxxxxxxxxxxxxx>

--- linux-3.2-rc2/drivers/hid/usbhid/usbkbd.c	2011-11-15 18:02:59.000000000 +0100
+++ linux-3.2-rc2/drivers/hid/usbhid/usbkbd-patch2.c	2011-11-17 11:10:57.612513561 +0100
@@ -334,6 +334,7 @@ static void usb_kbd_disconnect(struct us
 	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);
 	}

-- 

Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux