usb: gadget: Clear usb_endpoint_descriptor inside the struct usb_ep on disable
[linux-2.6-block.git] / drivers / usb / gadget / atmel_usba_udc.c
index e2fb6d583bd91a9b849da93224ef002bbb03f683..5e10f651ad6383d60c22d8c7ec4a5102e340cd36 100644 (file)
@@ -659,6 +659,7 @@ static int usba_ep_disable(struct usb_ep *_ep)
                return -EINVAL;
        }
        ep->desc = NULL;
+       ep->ep.desc = NULL;
 
        list_splice_init(&ep->queue, &req_list);
        if (ep->can_dma) {