From: Troy Kisky Date: Thu, 26 Sep 2013 01:41:14 +0000 (-0700) Subject: usb: gadget: mv_udc: zero transfer descriptor memory on probe X-Git-Tag: v2014.01-rc1~207^2~32 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=01773ccc0d8d421935dd6ee51b222221a87620ad;p=u-boot 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 --- 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++) { /*