usb: gadget: mv_udc: zero transfer descriptor memory on probe
authorTroy Kisky <troy.kisky@boundarydevices.com>
Thu, 26 Sep 2013 01:41:14 +0000 (18:41 -0700)
committerMarek Vasut <marex@denx.de>
Sun, 20 Oct 2013 21:42:39 +0000 (23:42 +0200)
Since we flush the TD, we may as well set it to a known value.

Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
drivers/usb/gadget/mv_udc.c

index c56ccff1390de7112bc9a208e82b2e15640c43aa..f91af7eb46483a5730d7f07e0d4e64e1643b9c44 100644 (file)
@@ -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++) {
                /*