diff --git a/bsp/imx6sx/iMX6_Platform_SDK/sdk/common/usb_stack/Device/source/driver/mx6x/usb_dci_imx6.c b/bsp/imx6sx/iMX6_Platform_SDK/sdk/common/usb_stack/Device/source/driver/mx6x/usb_dci_imx6.c index c4aa99ca78..5c96cfa3d9 100755 --- a/bsp/imx6sx/iMX6_Platform_SDK/sdk/common/usb_stack/Device/source/driver/mx6x/usb_dci_imx6.c +++ b/bsp/imx6sx/iMX6_Platform_SDK/sdk/common/usb_stack/Device/source/driver/mx6x/usb_dci_imx6.c @@ -183,7 +183,7 @@ uint_8 USB_DCI_Init( printf_info("%s\n", __func__); g_dci_controller_Id[controller_ID] = controller_ID; - memset(qh_buf, 0x0, sizeof(qh_buf)); + memset(qh_buf, 0x0, TOTAL_QHD_SIZE); // Initialize hardware status = usbd_mx6_dev_init(controller_ID);