race between disconnect and open in usbtouchscreen
diff mbox

Message ID 200911202249.56591.oliver@neukum.org
State Accepted
Commit 722232bcd8086b37cd3af7d9e94e7e10b231979e
Headers show

Commit Message

Oliver Neukum Nov. 20, 2009, 9:49 p.m. UTC
None

Patch
diff mbox

diff --git a/drivers/input/touchscreen/usbtouchscreen.c b/drivers/input/touchscreen/usbtouchscreen.c
index 68ece58..eddb628 100644
--- a/drivers/input/touchscreen/usbtouchscreen.c
+++ b/drivers/input/touchscreen/usbtouchscreen.c
@@ -1087,7 +1087,7 @@  static void usbtouch_disconnect(struct usb_interface *intf)
 
 	dbg("%s - usbtouch is initialized, cleaning up", __func__);
 	usb_set_intfdata(intf, NULL);
-	usb_kill_urb(usbtouch->irq);
+	/* this will stop IO via close */
 	input_unregister_device(usbtouch->input);
 	usb_free_urb(usbtouch->irq);
 	usbtouch_free_buffers(interface_to_usbdev(intf), usbtouch);