diff options
author | Troy Kisky | 2013-09-25 18:41:14 -0700 |
---|---|---|
committer | Marek Vasut | 2013-10-20 23:42:39 +0200 |
commit | 01773ccc0d8d421935dd6ee51b222221a87620ad (patch) | |
tree | 4e8861a5163e3af3cbb1dbf887129d42c77b555e /drivers/usb | |
parent | 5fc2e99732367e7048f8e29592ef2d7aa7d10d14 (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.c | 1 |
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++) { /* |