Thread (4 messages) 4 messages, 3 authors, 2009-11-23

Re: [patch]race between disconnect and open in usbtouchscreen

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help