Re: [PATCH] USB: add USB test and measurement class driver - round 2

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Greg KH <greg@...>
Cc: Alan Stern <stern@...>, USB list <linux-usb@...>, Stefan Kopp <stefan_kopp@...>, Marcel Janssen <korgull@...>, Felipe Balbi <me@...>, Kernel development list <linux-kernel@...>
Date: Thursday, August 28, 2008 - 5:29 pm

> > > +		buffer[4] = (this_part - 12 - 3) & 255;

No. Kernel code does not exist to show how to do endianness conversion.
We have clearly labeled functions.


There is no such thing as an ignorable race. On second thought
you can take the mutex in the sysfs handlers. That will also do the job.



This is oopsable from user space.


Yes.
 

Yes. You can set the intf pointer to NULL. That's sort of idiomatic.
And you should NULL intfdata.


	Regards
		Oliver


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] USB: add USB test and measurement class driver -..., Oliver Neukum, (Thu Aug 28, 5:29 pm)