aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorTroy Kisky2013-09-25 18:41:14 -0700
committerMarek Vasut2013-10-20 23:42:39 +0200
commit01773ccc0d8d421935dd6ee51b222221a87620ad (patch)
tree4e8861a5163e3af3cbb1dbf887129d42c77b555e /drivers/usb
parent5fc2e99732367e7048f8e29592ef2d7aa7d10d14 (diff)
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 <troy.kisky@boundarydevices.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/gadget/mv_udc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/mv_udc.c b/drivers/usb/gadget/mv_udc.c
index c56ccff1390..f91af7eb464 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++) {
/*