Am Donnerstag, 20. Februar 2003 02:11 schrieb Greg KH:
> On Thu, Feb 20, 2003 at 02:13:29AM +0100, Oliver Neukum wrote:
> > Am Donnerstag, 20. Februar 2003 01:47 schrieb Greg KH:
> > > On Thu, Feb 20, 2003 at 01:45:09AM +0100, Oliver Neukum wrote:
> > > > Besides, what are you to do if incrementing a usage count in
> > > > usb_submit_urb() fails ? By definition you cannot return to the
> > > > driver.
> > >
> > > Huh?  usb_submit_urb() can fail today any number of different ways.
> > > -ENODEV would work just fine if we can't increment the module reference
> > > count of a urb.
> >
> > You'd return to a driver that is undergoing unload ?
> > You are potentially doing a return into never never land.
>
> What?  If a driver is undergoing unload, then any kind of return from
> usb_submit_urb() (error or not) will cause an oops.

Exactly. You are checking for an error that you can't handle.
What would usb_submit_urb() do if increasing the usage count
fails?

        Regards
                Oliver



-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to