diff options
author | Ido Shayevitz <idos@codeaurora.org> | 2012-02-08 13:56:48 +0200 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-02-24 12:22:38 +0200 |
commit | f9c56cdd3905c96c600456203637bd7ec8ec6383 (patch) | |
tree | cfa0cd39d0798a0c3e4b57bf2ce3e9e75922c769 /drivers/usb/gadget/amd5536udc.c | |
parent | a003c187cac7a88101fe7f254bde6582865f7908 (diff) | |
download | op-kernel-dev-f9c56cdd3905c96c600456203637bd7ec8ec6383.zip op-kernel-dev-f9c56cdd3905c96c600456203637bd7ec8ec6383.tar.gz |
usb: gadget: Clear usb_endpoint_descriptor inside the struct usb_ep on disable
This fix a bug in f_serial, which expect the ep->desc to be NULL after
disabling an endpoint.
Cc: stable@vger.kernel.org
Signed-off-by: Ido Shayevitz <idos@codeaurora.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/amd5536udc.c')
-rw-r--r-- | drivers/usb/gadget/amd5536udc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/amd5536udc.c b/drivers/usb/gadget/amd5536udc.c index c16ff55..18883bd 100644 --- a/drivers/usb/gadget/amd5536udc.c +++ b/drivers/usb/gadget/amd5536udc.c @@ -445,6 +445,7 @@ static void ep_init(struct udc_regs __iomem *regs, struct udc_ep *ep) VDBG(ep->dev, "ep-%d reset\n", ep->num); ep->desc = NULL; + ep->ep.desc = NULL; ep->ep.ops = &udc_ep_ops; INIT_LIST_HEAD(&ep->queue); |