From f6098244f6e891f31ea8524084f9cab5cc5ea39b Mon Sep 17 00:00:00 2001 From: dongjiuzhu1 Date: Thu, 2 Nov 2023 14:48:11 +0800 Subject: [PATCH] driver/usbdev_fs: fix minor issue about unbind Signed-off-by: dongjiuzhu1 --- drivers/usbdev/usbdev_fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usbdev/usbdev_fs.c b/drivers/usbdev/usbdev_fs.c index 9f0ffb0def..f3a8341cf8 100644 --- a/drivers/usbdev/usbdev_fs.c +++ b/drivers/usbdev/usbdev_fs.c @@ -1162,7 +1162,7 @@ static void usbdev_fs_classunbind(FAR struct usbdevclass_driver_s *driver, if (fs->eps != NULL) { - for (i = 0; i < devinfo->ninterfaces; i++) + for (i = 0; i < devinfo->nendpoints; i++) { snprintf(devname, sizeof(devname), "%s/ep%d", devinfo->name, i + 1);