usb: gadget: Clear usb_endpoint_descriptor inside the struct usb_ep on disable
authorIdo Shayevitz <idos@codeaurora.org>
Wed, 8 Feb 2012 11:56:48 +0000 (13:56 +0200)
committerFelipe Balbi <balbi@ti.com>
Fri, 24 Feb 2012 10:22:38 +0000 (12:22 +0200)
commitf9c56cdd3905c96c600456203637bd7ec8ec6383
treecfa0cd39d0798a0c3e4b57bf2ce3e9e75922c769
parenta003c187cac7a88101fe7f254bde6582865f7908
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>
15 files changed:
drivers/usb/dwc3/gadget.c
drivers/usb/gadget/amd5536udc.c
drivers/usb/gadget/at91_udc.c
drivers/usb/gadget/atmel_usba_udc.c
drivers/usb/gadget/ci13xxx_udc.c
drivers/usb/gadget/fsl_qe_udc.c
drivers/usb/gadget/fsl_udc_core.c
drivers/usb/gadget/goku_udc.c
drivers/usb/gadget/langwell_udc.c
drivers/usb/gadget/mv_udc_core.c
drivers/usb/gadget/omap_udc.c
drivers/usb/gadget/pch_udc.c
drivers/usb/gadget/pxa25x_udc.c
drivers/usb/gadget/s3c-hsudc.c
drivers/usb/gadget/s3c2410_udc.c