> From: Alan Stern <[EMAIL PROTECTED]>
> Date: Wed, 29 Oct 2003 16:01:06 -0500 (EST)

> +     spin_lock(&hub_event_lock);
> +     hub->urb_active = 0;
> +     if (hub->urb_complete) {        /* disconnect or rmmod */
> +             complete(hub->urb_complete);
> +             goto done;
> +     }

>  {
>       struct usb_hub *hub = usb_get_intfdata (intf);
>       unsigned long flags;
> +     DECLARE_COMPLETION(urb_complete);
> +     hub->urb_complete = &urb_complete;
 
hub->urb_complete does not seem to be cleared anywhere.

Why not to keep completion around in the structure?

-- Pete


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to