From 9ebed49d2913149479c32612b296dc2a2bf87056 Mon Sep 17 00:00:00 2001 From: dongjiuzhu1 Date: Wed, 7 Feb 2024 13:40:17 +0800 Subject: [PATCH] drivers/usbdev: update sem ptr before loop run Signed-off-by: dongjiuzhu1 --- drivers/usbdev/usbdev_fs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/usbdev/usbdev_fs.c b/drivers/usbdev/usbdev_fs.c index ed3f13a6fe..5d889948b9 100644 --- a/drivers/usbdev/usbdev_fs.c +++ b/drivers/usbdev/usbdev_fs.c @@ -381,7 +381,7 @@ static int usbdev_fs_blocking_io(FAR struct usbdev_fs_ep_s *fs_ep, FAR usbdev_fs_waiter_sem_t **list, FAR struct sq_queue_s *queue) { - FAR usbdev_fs_waiter_sem_t sem; + usbdev_fs_waiter_sem_t sem; irqstate_t flags; int ret; @@ -435,6 +435,8 @@ static int usbdev_fs_blocking_io(FAR struct usbdev_fs_ep_s *fs_ep, cur_sem->next = sem.next; break; } + + cur_sem = cur_sem->next; } }