On Sat, 17 Apr 2004, Oliver Neukum wrote:

> > Presumably all the memory allocation should be done before clearing out
> > the prior state, so that if we run out of memory nothing will have
> > changed.  How does that sound?
> 
> Very sensible.
> But, as you noted, it won't solve the problem of the actual io setting the
> configuration fails. I am not sure what to do in that case. Reset?

When that happens there really isn't any sensible action
usb_set_configuration() can take.  It should just return the failure code
to its caller and let someone higher up decide what to do.

I'll send out a version of the patch that does the memory allocation first
some time next week.  Until then, please let me know if you find anything
else worth changing.

Alan Stern



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to