From 4ab43ca98ff4f43f495182f69334e589bb84daa2 Mon Sep 17 00:00:00 2001 From: yxf Date: Thu, 27 Apr 2023 12:02:16 +0800 Subject: [PATCH] =?UTF-8?q?[HUST=20CSE][NXP][imx6sx]=20memset=E5=87=BD?= =?UTF-8?q?=E6=95=B0=E4=BD=BF=E7=94=A8=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/usb_stack/Device/source/driver/mx6x/usb_dci_imx6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);