Re: [patch]race between disconnect and open in usbtouchscreen
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Date: 2009-11-23 17:21:34
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Date: 2009-11-23 17:21:34
On Fri, Nov 20, 2009 at 10:49:56PM +0100, Oliver Neukum wrote:
Am Freitag, 20. November 2009 22:22:59 schrieb Dmitry Torokhov:quoted
Hi Oliver, On Fri, Nov 20, 2009 at 10:13:47PM +0100, Oliver Neukum wrote:quoted
Hi, an open() between killing the urb and unregistering the device can lead to IO to a disconnected device.usbtouch_close() calls usb_kill_urb() so there is no race. usb_kill_urb() simply not needed in usbtouch_disconnect().Then it needs to go.
Applied, thank you Oliver. -- Dmitry