On Monday 14 January 2002 20:20, David Brownell wrote:
> Freeing an URB you own is always legal.
>
> Unlinking an URB that's not linked is a different issue.
> For the moment I don't want to confuse things by talking
> about those cases.

I don't think that you can seperate the issues.
Either the driver owns the urb during the callback or it doesn't.

If you own the urb, you may certainly free it.
However, we must be able to unlink an urb even while the
completion handler is running, else we race with every
completion handler that resubmits its urb.
Yet we must trust the urb pointer to be valid to do an unlink.

IMHO freeing an urb in the completion handler is asking for trouble.

        Regards
                Oliver


_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to