usb: gadget: Clear usb_endpoint_descriptor inside the struct usb_ep on disable
[linux-2.6-block.git] / drivers / usb / gadget / langwell_udc.c
index fa0fcc11263fb8b6a73d21bcdbe7ba3f168e19dc..a2bb5e476f54f2a4c04325217deb5545c0aff30e 100644 (file)
@@ -492,6 +492,7 @@ static int langwell_ep_disable(struct usb_ep *_ep)
        nuke(ep, -ESHUTDOWN);
 
        ep->desc = NULL;
+       ep->ep.desc = NULL;
        ep->stopped = 1;
 
        spin_unlock_irqrestore(&dev->lock, flags);