From b065eb7fd7f9c7364dbfc117ed4705f4dd932474 Mon Sep 17 00:00:00 2001 From: Troy Kisky Date: Wed, 25 Sep 2013 18:41:15 -0700 Subject: [PATCH] usb: gadget: mv_udc: clear desc upon ep_disable desc is set at ep_enable, so for symmetry, clear it at ep_disable. Signed-off-by: Troy Kisky --- drivers/usb/gadget/mv_udc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/gadget/mv_udc.c b/drivers/usb/gadget/mv_udc.c index f91af7eb46..c64d597053 100644 --- a/drivers/usb/gadget/mv_udc.c +++ b/drivers/usb/gadget/mv_udc.c @@ -245,6 +245,9 @@ static int mv_ep_enable(struct usb_ep *ep, static int mv_ep_disable(struct usb_ep *ep) { + struct mv_ep *mv_ep = container_of(ep, struct mv_ep, ep); + + mv_ep->desc = NULL; return 0; } -- 2.30.2