From 01773ccc0d8d421935dd6ee51b222221a87620ad Mon Sep 17 00:00:00 2001 From: Troy Kisky Date: Wed, 25 Sep 2013 18:41:14 -0700 Subject: [PATCH] usb: gadget: mv_udc: zero transfer descriptor memory on probe Since we flush the TD, we may as well set it to a known value. Signed-off-by: Troy Kisky --- drivers/usb/gadget/mv_udc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/gadget/mv_udc.c b/drivers/usb/gadget/mv_udc.c index c56ccff139..f91af7eb46 100644 --- a/drivers/usb/gadget/mv_udc.c +++ b/drivers/usb/gadget/mv_udc.c @@ -626,6 +626,7 @@ static int mvudc_probe(void) free(controller.epts); return -ENOMEM; } + memset(controller.items_mem, 0, ilist_sz); for (i = 0; i < 2 * NUM_ENDPOINTS; i++) { /* -- 2.25.1