Re: [patch]usbled disconnect read race

Oliver Neukum <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
Am Sonntag 28 Oktober 2007 schrieben Sie:
> On Fri, 26 Oct 2007, Oliver Neukum wrote:
> 
> > Hi,
> > 
> > usbled has a race where show methods for attributes in sysfs can
> > follow a NULL pointer during disconnect. The correct ordering fixes
> > it.
> 
> Your comment talks about show methods for attributes, but the patch 
> affects lcd_open() and lcd_disconnect().  What's going on?

I made a typo including the wrong patch.

> Furthermore, it's been true for a while that unregistering an attribute 
> was synchronized with calls to the show and store methods.  There 
> shouldn't be any races between show and disconnect.

All is well, if disconnect() unregisters before it bends pointers needed
for reading attributes to NULL.

	Regards
		Oliver




-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.