On Monday 24 January 2005 5:07 pm, Matthias Urlichs wrote:
> I wrote:
> 
> > Meanwhile, I received this one-line patch which might actually solve the
> > problem in question:
> > 
> ... once it's adapted to the latest kernel. Sheesh.
> 
> This should compile. It might even work. ;-)

I wouldn't trust it too much though.  It's only safe to go down that
path if the list is really empty.  The "not running" case should already
have been handled by the "sanitize" case earlier, emptying the queue.

Unfortunately for you, it was oopsing instead ... :(


> --- drivers/usb/host/ohci-hcd.c       2005-01-05 21:21:53 +01:00
> +++ edited/ohci-hcd.c 2005-01-24 19:54:37 +01:00
> @@ -373,7 +373,7 @@
>               schedule_timeout (1);
>               goto rescan;
>       case ED_IDLE:           /* fully unlinked */
> -             if (list_empty (&ed->td_list)) {
> +             if (!HCD_IS_RUNNING(ohci_to_hcd(ohci)->state) || list_empty 
> (&ed->td_list)) {
>                       td_free (ohci, ed->dummy);
>                       ed_free (ohci, ed);
>                       break;
> 


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to