提交 01773ccc 编写于 作者: T Troy Kisky 提交者: Marek Vasut

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: NTroy Kisky <troy.kisky@boundarydevices.com>
上级 5fc2e997
......@@ -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++) {
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册