Am Mittwoch, 10. September 2003 05:27 schrieb Greg KH:
> On Wed, Sep 10, 2003 at 12:38:18PM +1000, Mark McDougall wrote:
> > Hi All,
> >
> > I'm having problems unlinking in my device driver.
> >
> > My driver submits a number of IN urbs on device open (up to 16) and
> > simply appends data in a buffer in the callback function before
> > re-submitting another urb (not the same one - an 'idle' one).
> >
> > However, when closing the device and attempting to unlink the urbs, I am
> > getting kernel panics. Sometimes they occur on close (unlink), and other
> > times on module exit (probably on free_urb).
> >
> > Are there any known race conditions in usb_unlink_urb()? (I saw
> > reference to one in passing in a msg on this mailing list)
You could miss URBs that are submitted from the callbacks.
You need mutual exclusion of completion handlers and
disconnect handlers.
HTH
Oliver
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel