wangzhi-art commented on code in PR #15546: URL: https://github.com/apache/nuttx/pull/15546#discussion_r1915997621
########## arch/renesas/src/rx65n/rx65n_usbdev.c: ########## @@ -2998,10 +3004,12 @@ static int rx65n_epdisable(struct usbdev_ep_s *ep) /* Cancel any ongoing activity */ - flags = enter_critical_section(); + flags = spin_lock_irqsave(&g_usbdev.lock); Review Comment: In the modified file, the global variable "g_usbdev" is used in the critical section instead of the private variable "priv", so the lock used here is in the form of g_usbdev.lock -- 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]
