drivers/usbdev: update sem ptr before loop run

Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
dongjiuzhu1 2024-02-07 13:40:17 +08:00 committed by Xiang Xiao
parent 7feb547c6f
commit 9ebed49d29
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}
}