From 0cb8fdfe83b6bf1f3c9c5a8f3704c0d7ccfa2a01 Mon Sep 17 00:00:00 2001 From: zhangyuan21 Date: Thu, 6 Jul 2023 14:48:51 +0800 Subject: [PATCH] usbdev: set ep0 priv only not define CONFIG_USBDEV_COMPOSITE Signed-off-by: zhangyuan21 --- drivers/usbdev/cdcecm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usbdev/cdcecm.c b/drivers/usbdev/cdcecm.c index 0f8203c3f2..948246dd48 100644 --- a/drivers/usbdev/cdcecm.c +++ b/drivers/usbdev/cdcecm.c @@ -1661,7 +1661,9 @@ static int cdcecm_bind(FAR struct usbdevclass_driver_s *driver, uinfo("\n"); +#ifndef CONFIG_CDCECM_COMPOSITE dev->ep0->priv = self; +#endif /* Preallocate control request */