On Tuesday 15 January 2002 21:37, David Brownell wrote:
> > After further checking, I found that no HCD driver can cope
> > with unlinking an urb that can be freed from the completion
> > handler.
>
> Without any checking whatsoever, I'll say that no driver in
> the Linux kernel will cope with being passed pointers to
> memory that's been freed. In fact, most parts of Linux will
> do nasty things in such cases, like Oopsing.
>
> > The rule of never unlinking an urb that can be freed from the
> > completion handler is in all likelihood known to less than
> > five people on earth. And it is very, very counterintuitive.
>
> Good thing, because that's not a rule. The rule is against
> using memory after it's been freed ... and it's not specific
> to USB or URBs.
Then tell me how any driver is supposed to guarantee
that, if the completion handler may free the urb.
And how is the comment in hcd.c on unlinking urbs and
the validity of the pointers supposed to be understood.
Regards
Oliver
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel