projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
usb: gadget: Clear usb_endpoint_descriptor inside the struct usb_ep on disable
[linux-2.6-block.git]
/
drivers
/
usb
/
gadget
/
ci13xxx_udc.c
diff --git
a/drivers/usb/gadget/ci13xxx_udc.c
b/drivers/usb/gadget/ci13xxx_udc.c
index 27e313718422a5c2f1726330ab822d1fa9f133c8..9e892890e08af2ba0e9bd8a121e79ca890fa5ae7 100644
(file)
--- a/
drivers/usb/gadget/ci13xxx_udc.c
+++ b/
drivers/usb/gadget/ci13xxx_udc.c
@@
-2181,6
+2181,7
@@
static int ep_disable(struct usb_ep *ep)
} while (mEp->dir != direction);
mEp->desc = NULL;
+ mEp->ep.desc = NULL;
spin_unlock_irqrestore(mEp->lock, flags);
return retval;