wangzhi-art commented on code in PR #15506:
URL: https://github.com/apache/nuttx/pull/15506#discussion_r1916071845


##########
arch/arm/src/lpc214x/lpc214x_usbdev.c:
##########
@@ -1124,6 +1139,19 @@ static int lpc214x_wrrequest(struct lpc214x_ep_s *privep)
   return OK;
 }
 
+static int lpc214x_wrrequest(struct lpc214x_ep_s *privep)
+{
+  int ret;
+
+  irqstate_t flags = spin_lock_irqsave(&g_usbdev.lock);
+  sched_lock();
+  ret = lpc214x_wrrequest_nolock(privep);

Review Comment:
   Done.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to